touch if missing
This commit is contained in:
@@ -6,6 +6,7 @@ function cd_history () {
|
|||||||
then \cd "$HOME"
|
then \cd "$HOME"
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
touch "$HOME/.bash_cdhistory"
|
||||||
old=$( tail -n 149 "$HOME/.bash_cdhistory" )
|
old=$( tail -n 149 "$HOME/.bash_cdhistory" )
|
||||||
echo "$old" > "$HOME/.bash_cdhistory"
|
echo "$old" > "$HOME/.bash_cdhistory"
|
||||||
\cd "$1"
|
\cd "$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user