aboutsummaryrefslogtreecommitdiffhomepage
path: root/share/functions/cd.fish
diff options
context:
space:
mode:
authorGravatar Kurtis Rader <krader@skepticism.us>2016-05-08 16:27:15 -0700
committerGravatar Kurtis Rader <krader@skepticism.us>2016-05-08 16:27:15 -0700
commit3626c39398db095baaf2929f9c5bb1db8e7d3603 (patch)
tree859aa9ae8f4239bc02a624bbe3b82cfb99925ef2 /share/functions/cd.fish
parent0d1d324e9f6719a5d4198ee0e8efd05cad89fc39 (diff)
fix the style of several functions
I'm going to modify these functions as part of dealing with issue #3000 and don't want those changes to be masked by running the files through `make style`.
Diffstat (limited to 'share/functions/cd.fish')
-rw-r--r--share/functions/cd.fish5
1 files changed, 3 insertions, 2 deletions
diff --git a/share/functions/cd.fish b/share/functions/cd.fish
index a1b6b2ac..adf0327c 100644
--- a/share/functions/cd.fish
+++ b/share/functions/cd.fish
@@ -15,7 +15,7 @@ function cd --description "Change directory"
return $status
end
- # Avoid set completions
+ # Avoid set completions.
set -l previous $PWD
if test "$argv" = "-"
@@ -31,7 +31,8 @@ function cd --description "Change directory"
set -l cd_status $status
if test $cd_status -eq 0 -a "$PWD" != "$previous"
- set -q dirprev[$MAX_DIR_HIST]; and set -e dirprev[1]
+ set -q dirprev[$MAX_DIR_HIST]
+ and set -e dirprev[1]
set -g dirprev $dirprev $previous
set -e dirnext
set -g __fish_cd_direction prev