forked from pub-solar/os
Improve terminal pwd title by shortening home to ~
This commit is contained in:
parent
88ee3fe4c7
commit
84fa70513f
|
@ -84,7 +84,8 @@ in
|
|||
stty erase '^?'
|
||||
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue