fix pushd

This commit is contained in:
LawAbidingCactus 2020-04-26 09:29:46 +00:00 committed by Fabian Homborg
parent 1988bd2579
commit ad677d388c
2 changed files with 3 additions and 2 deletions

View file

@ -7,6 +7,7 @@
- On BSD systems, with the `-s` option, `fish_md5` does not use the given string, but `-s`. From now on the string is used.
- Control-C no longer kills background jobs for which job control is disabled, matching POSIX semantics (#6828).
- Improve Gradle completion
- Fixed `pushd`'s behavior with respect to the directory stack when given an invalid argument
### Syntax changes and new commands

View file

@ -76,6 +76,6 @@ function pushd --description 'Push directory to stack'
end
# argv[1] is a directory
set -g -p dirstack $PWD
cd $argv[1]
set -l old_pwd $PWD
cd $argv[1]; and set -g -p dirstack $old_pwd
end