Shell cosmetic changes

This commit is contained in:
Lucas 2020-08-22 00:01:38 +00:00
parent a444cdcbfd
commit 0f6b0e5133
11 changed files with 66 additions and 61 deletions

View file

@ -1,5 +1,5 @@
# env
# Written in 2019 by Lucas
# Written in 2019-2020 by Lucas
# CC0 1.0 Universal/Public domain - No rights reserved
#
# To the extent possible under law, the author(s) have dedicated all
@ -18,8 +18,12 @@ export PATH HOME TERM LC_CTYPE
case "$-" in
*i*)
case "$SHELL" in
/bin/bash) . ~/.shrc ;;
/bin/ksh | /bin/loksh | /bin/mksh) export ENV=~/.shrc ;;
/bin/bash)
. ~/.shrc
;;
*)
export ENV=~/.shrc
;;
esac
esac

View file

@ -1,5 +1,5 @@
# env
# Written in 2019 by Lucas
# Written in 2019-2020 by Lucas
# CC0 1.0 Universal/Public domain - No rights reserved
#
# To the extent possible under law, the author(s) have dedicated all
@ -45,13 +45,15 @@ case $SHELL in
/bin/mksh)
PS1=$PS1'${HOSTNAME:=$(hostname -s)}\$ '
;;
*) PS1=$PS1'\h\$ '
*)
PS1=$PS1'\h\$ '
;;
esac
export PS1
case $(uname -s) in
Linux) stty erase "^?"
Linux)
stty erase "^?"
;;
esac

View file

@ -19,9 +19,9 @@ setxkbmap \
xset r rate 300 75
xset b off
test -d /usr/local/share/fonts/bitmaps \
&& xset +fp /usr/local/share/fonts/bitmaps \
&& xset fp rehash
test -d /usr/local/share/fonts/bitmaps &&
xset +fp /usr/local/share/fonts/bitmaps &&
xset fp rehash
test -r ~/.Xresources && xrdb -merge ~/.Xresources
exec herbstluftwm -l >~/local/var/log/herbstluftwm 2>&1