Shell: fixed echokeymap and SHELL_*
parent
e1f3abad18
commit
d2b56dfabb
|
@ -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
4
.zshrc
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue