From 282a40a8ecedc78b87dc74672fde9e0f50d36ba7 Mon Sep 17 00:00:00 2001 From: June McEnroe Date: Sun, 29 May 2022 22:20:51 -0400 Subject: Set prompt for oksh I am trying out actually using oksh full time. Surviving with no right prompt. --- home/.shrc | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) (limited to 'home') diff --git a/home/.shrc b/home/.shrc index 1d7542a3..afa87fe5 100644 --- a/home/.shrc +++ b/home/.shrc @@ -25,7 +25,7 @@ man() { for sect in $MANSECT; do command man -w $sect "$1" >/dev/null 2>&1 && exec man $sect "$1" done - exec man "$1") + exec command man "$1") } cd() { @@ -50,15 +50,5 @@ fi export LESS_TERMCAP_us=$(tput sitm) export LESS_TERMCAP_ue=$(tput ritm) -hostname=$(hostname -s) -rprompt() { - local pwd - pwd=${PWD#${HOME}} - [ "${pwd}" != "${PWD}" ] && pwd="~${pwd}" - [ "${TERM%-*}" = 'xterm' ] \ - && printf '\33]0;%s\a' "${SSH_CLIENT:+${hostname}:}${pwd##*/}" >&2 - printf '%s' "${SSH_CLIENT:+${hostname}:}${pwd}" -} -PS1=' -$ ' -RPS1='${?#0} $(rprompt)' +PS1='\[\033]0;${SSH_CLIENT:+\\h:}\W\a\] +${?#0}$ ' -- cgit 1.4.1 tive' href='/litterbox/log/LICENSE?h=1.5&follow=1'>log tree commit diff
path: root/LICENSE (unfollow)
Commit message (Expand)Author
2020-07-07Only join FTS table when FTS query is presentJune McEnroe
2020-06-24Bump ParamCap to 254June McEnroe
2020-06-12Remove RPL_MOTDSTART handlerJune McEnroe
2020-06-08Add additional permission for linking with LibreSSLJune McEnroe
2020-05-22Perform all migrations in one transaction 1.3June McEnroe
2020-05-21Clean up unscoop manual pageJune McEnroe
2020-05-21Fix search expression appendJune McEnroe
2020-05-21Fix dbPrepare errx callJune McEnroe
2020-05-21Add only the necessary expressions to scoop's queryJune McEnroe
2020-05-21Explicitly set stdout line buffered when pagingJune McEnroe
2020-05-21Do not sort results in scoop by defaultJune McEnroe
2020-05-21Expand and clarify documentationJune McEnroe
2020-05-21Execute PAGER with the SHELLJune McEnroe
2020-05-21Automatically perform database migrations in litterboxJune McEnroe
2020-05-20Don't install rc scripts on other platformsJune McEnroe
2020-05-20Rewrite build and install like pounce 1.3June McEnroe
2020-05-20Update email addressesJune McEnroe
2020-04-23Call updateConsumer from handleError 1.2p1June McEnroe
2020-04-20Use . as ${LDLIBS.$@} separatorJune McEnroe
2020-04-05Error on invalid ISUPPORT values 1.2June McEnroe
2020-04-05Only set RCS on FreeBSDJune McEnroe
2020-04-05Log bans and unbansJune McEnroe
2020-04-05Parse mode types from ISUPPORTJune McEnroe
2020-04-05Add unscoop matchers for ban/unban eventsJune McEnroe
2020-04-05Check unscoop regexps with make testJune McEnroe
2020-04-05Add unscoop -n flag for checking regexpsJune McEnroe
2020-04-05Add Ban and Unban event typesJune McEnroe
2020-04-02Update styleJune McEnroe
2020-03-31Update unscoop catgirl matchersJune McEnroe
2020-03-31Fix writing verbose to stderrJune McEnroe
2020-03-02Include <>/-/* around nicks in scoop coloring 1.1June McEnroe
2020-03-02Replace .mk files with configure scriptJune McEnroe
2020-02-28Implement the causal.agency/consumer capabilityJune McEnroe
2020-02-22Include <>/-/* around nicks in coloringJune McEnroe
2020-02-22Use (almost) the full range of IRC colors for nicksJune McEnroe