aboutsummaryrefslogtreecommitdiff
path: root/mkshrc
diff options
context:
space:
mode:
authorDuncaen <mail@duncano.de>2017-11-16 16:57:39 +0100
committerDuncaen <mail@duncano.de>2017-11-16 17:01:30 +0100
commitbed9a418fe578e777c3297aacae92fe026425927 (patch)
tree614f79b23341d272156470935b98588ef2ce7455 /mkshrc
parentec12a3f7ff9ca8f2c5a8bdd542b706081828e92a (diff)
downloaddotfiles-bed9a418fe578e777c3297aacae92fe026425927.tar.gz
mksh: small updates
Diffstat (limited to 'mkshrc')
-rw-r--r--mkshrc16
1 files changed, 12 insertions, 4 deletions
diff --git a/mkshrc b/mkshrc
index 738b51c..8dd88c6 100644
--- a/mkshrc
+++ b/mkshrc
@@ -156,14 +156,16 @@ export HISTFILE HISTSIZE SHELL
[ -r ~/.aliases ] && . ~/.aliases
case "$TERM" in
-xterm|screen|*-256color)
+xterm|screen|*256col*)
+ # ((e=$?)) && print "${|errno2str "$e"}" && e="?\e[0;31m$e\e[0m" || e=
alias weechat='print "\033]0;weechat\a$d$s$e$i " && weechat'
- PS1=$'\001\r''$(\
-((e=$?)) && e="?\e[0;31;40m$e\e[0m" || e=
+ PS1=$'\001\r\r''$(\
+((e=$?)) && e="?\e[0;31m$e\e[0m" || e=
d=${PWD/$HOME/\~}; d=${d##*/};\
[ "$SSH_CONNECTION" ] && s="@${HOSTNAME:=$(hostname)}" || s=;\
i=\#; ((USER_ID)) && i=\$;\
-\print "\033]0;$d$s$i\a$d$s$e$i") '
+i1=\#; ((USER_ID)) && i1="\e[0;32m\$\e[0m";\
+\print "\033]0;$d$s$i\a$d$s$e$i1") '
;;
network|dump|*)
PS1=$'\001\r''$(\
@@ -174,3 +176,9 @@ d=${PWD/$HOME/\~}; d=${d##*/};\
print "$d$s$e$i ")'
;;
esac
+
+function fgg {
+ j=$(jobs|fzy); j=${j%%]*}; j=${j#[*}; fg "%$j"
+}
+
+export GCC_COLORS='locus=34'