diff --git a/qcd_function b/qcd_function index 3fed91d..df4ee3e 100644 --- a/qcd_function +++ b/qcd_function @@ -6,6 +6,7 @@ function cd_history () { then \cd "$HOME" return fi + touch "$HOME/.bash_cdhistory" old=$( tail -n 149 "$HOME/.bash_cdhistory" ) echo "$old" > "$HOME/.bash_cdhistory" \cd "$1"