Commit f1af4158 authored by Fredrik Appelberg's avatar Fredrik Appelberg
Browse files

figuring out home dir on unix systems as well

parent da0cc370
...@@ -2,7 +2,7 @@ ...@@ -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/\..*//"'
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment