forked from pub-solar/os
Improve terminal pwd title by shortening home to ~
This commit is contained in:
parent
b204dd5363
commit
167cd2fc32
|
@ -84,7 +84,8 @@ in
|
||||||
stty erase '^?'
|
stty erase '^?'
|
||||||
|
|
||||||
precmd () {
|
precmd () {
|
||||||
echo -e "\e]2;$(pwd)\e\\"
|
DIR_NAME=$(pwd | sed "s|^$HOME|~|g")
|
||||||
|
echo -e "\e]2;$DIR_NAME\e\\"
|
||||||
}
|
}
|
||||||
|
|
||||||
# If a command is not found, show me where it is
|
# If a command is not found, show me where it is
|
||||||
|
|
Loading…
Reference in a new issue