mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2024-11-19 21:41:07 +01:00
figuring out home dir on unix systems as well
This commit is contained in:
parent
da0cc3701e
commit
f1af415899
1 changed files with 1 additions and 1 deletions
|
@ -2,7 +2,7 @@
|
||||||
# of the tab window should be.
|
# of the tab window should be.
|
||||||
if [[ $TERM == "screen" ]]; then
|
if [[ $TERM == "screen" ]]; then
|
||||||
if [[ $_GET_PATH == '' ]]; then
|
if [[ $_GET_PATH == '' ]]; then
|
||||||
_GET_PATH='echo $PWD | sed "s/^\/Users\//~/;s/^~$USER/~/"'
|
_GET_PATH='echo $PWD | sed "s/^\/Users\//~/;s/^\/home\//~/;s/^~$USER/~/"'
|
||||||
fi
|
fi
|
||||||
if [[ $_GET_HOST == '' ]]; then
|
if [[ $_GET_HOST == '' ]]; then
|
||||||
_GET_HOST='echo $HOST | sed "s/\..*//"'
|
_GET_HOST='echo $HOST | sed "s/\..*//"'
|
||||||
|
|
Loading…
Reference in a new issue