mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
fix pushd
This commit is contained in:
parent
1988bd2579
commit
ad677d388c
2 changed files with 3 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue