[feature] auto cd to last pwd
This commit is contained in:
parent
1620342ff1
commit
fa6aca3c61
|
@ -130,3 +130,5 @@ alias iscp='scp -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"'
|
|||
|
||||
|
||||
source-file-if-exists ~/.profile.fish
|
||||
|
||||
status is-interactive && cd $last_pwd
|
||||
|
|
|
@ -2,7 +2,8 @@ set -g __fish_git_prompt_show_informative_status 1
|
|||
|
||||
# Defined in /tmp/fish.hyt5lE/fish_prompt.fish @ line 2
|
||||
function fish_prompt --description 'Write out the prompt'
|
||||
set -l color_cwd
|
||||
set -U last_pwd $PWD
|
||||
set -l color_cwd
|
||||
set -l suffix
|
||||
switch "$USER"
|
||||
case root toor
|
||||
|
|
Loading…
Reference in New Issue
Block a user