diff options
author | axel <axel@liljencrantz.se> | 2006-05-29 23:07:53 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-05-29 23:07:53 +1000 |
commit | 433169dca42b4836160e6312a7d39a6e4e6a918e (patch) | |
tree | 41dc37895ec080454e60c27e209b45dd3c750e8f | |
parent | d46dade2847de8bf9e02f734528614ec92e9e757 (diff) |
Avoid using the pwd command in favour of the $PWD variable, since the pwd command does not seem to work well with fuse
darcs-hash:20060529130753-ac50b-0d32fe0924dbf9e83520d26402e9daae77789419.gz
-rw-r--r-- | share/functions/cd.fish | 4 | ||||
-rw-r--r-- | share/functions/pwd.fish | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/share/functions/cd.fish b/share/functions/cd.fish index ac5e3840..a08f9e99 100644 --- a/share/functions/cd.fish +++ b/share/functions/cd.fish @@ -11,7 +11,7 @@ function cd -d (N_ "Change directory") end # Avoid set completions - set previous (command pwd) + set previous $PWD if test $argv[1] = - ^/dev/null if test $__fish_cd_direction = next ^/dev/null @@ -24,7 +24,7 @@ function cd -d (N_ "Change directory") builtin cd $argv[1] - if test $status = 0 -a (command pwd) != $previous + if test $status = 0 -a $PWD != $previous set -g dirprev $dirprev $previous set -e dirnext set -g __fish_cd_direction prev diff --git a/share/functions/pwd.fish b/share/functions/pwd.fish index 33c7577d..65e8ee7b 100644 --- a/share/functions/pwd.fish +++ b/share/functions/pwd.fish @@ -3,5 +3,5 @@ # function pwd -d (N_ "Print working directory") - command pwd | sed -e 's|/private||' -e "s|^$HOME|~|" + echo $PWD | sed -e 's|/private||' -e "s|^$HOME|~|" end |