bash: bugfix: change $HOME to ~ now working
This commit is contained in:
parent
8b2c5408f6
commit
4d61d5b928
|
@ -60,7 +60,7 @@ function _my_parse_git_branch {
|
|||
|
||||
function short_path {
|
||||
# print first two letters of the path + last dir
|
||||
echo $(dirname $1 | sed -e "s;$HOME;~;" | sed -e "s;\(/[^/]\{1,2\}\)[^/]*;\1;g")/$(basename $1)
|
||||
echo $(dirname $1/ | sed -e "s;$HOME;~;" | sed -e "s;\(/[^/]\{1,2\}\)[^/]*;\1;g")/$(basename $1)
|
||||
}
|
||||
|
||||
function prompt_func() {
|
||||
|
|
Loading…
Reference in New Issue