Hack to homedir-relativize paths
This commit is contained in:
parent
e3450710fa
commit
4982d43f88
1 changed files with 4 additions and 4 deletions
|
@ -10,7 +10,7 @@ function _gotofile {
|
|||
}
|
||||
|
||||
function _makeLabel {
|
||||
printf "%s %s\n" $1 $2 >> `_gotofile`
|
||||
printf "%s %s\n" $1 $(echo $2 | tr -d "$HOME") >> `_gotofile`
|
||||
}
|
||||
|
||||
function label {
|
||||
|
@ -35,7 +35,7 @@ function goto {
|
|||
then
|
||||
_awk "{ print \$1 }" `_gotofile` | column -t
|
||||
else
|
||||
cd $(_awk "/^$1\s/ {print \$2;exit;}" `_gotofile`)
|
||||
cd "$HOME/$(_awk "/^$1\s/ {print \$2;exit;}" `_gotofile` | head -n 1)"
|
||||
fi
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue