fish: Fix init cd to non-existing folder

master
Pierre Neidhardt 2016-11-29 18:01:40 +05:30
parent 3d9127ef30
commit da20efb859
1 changed files with 1 additions and 1 deletions

View File

@ -12,7 +12,7 @@ set -g fish_cdhist_max 128
if grep -q . $fish_cdhist_path ^ /dev/null
set dirprev (cat $fish_cdhist_path)
set -q dirprev[$fish_cdhist_max]; and set dirprev $dirprev[-$fish_cdhist_max..-1]
cd $dirprev[(count $dirprev)]
cd $dirprev[(count $dirprev)] ^ /dev/null
end
## Run the following