Shell: fixed echokeymap and SHELL_*

master
Pierre Neidhardt 2014-01-11 21:56:38 +01:00
parent e1f3abad18
commit d2b56dfabb
2 changed files with 3 additions and 3 deletions

View File

@ -156,7 +156,7 @@ echokeymap ()
1="$HOME/.xkb/symbols/usex"
fi
awk '/━|┃|│|─/ {gsub(/^\/\/ /, ""); print $0}' "$1"
awk '/━|┃|│|─/ {line=substr($0,4); print line}' "$1"
}
## Extended info

4
.zshrc
View File

@ -3,8 +3,8 @@
################################################################################
## Note that 'ps -o command= $$' gives the same result with parameters.
readonly SHELL_CURRENT="$(ps -o comm= $$)"
readonly SHELL_DIR="$HOME/.shell.d"
[ -z "$SHELL_CURRENT" ] && readonly SHELL_CURRENT="$(ps -o comm= $$)"
[ -z "$SHELL_DIR" ] && readonly SHELL_DIR="$HOME/.shell.d"
## .profile is sourced automatically by most login managers, but we need to
## source it manually to TTY.