[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
|
source-file-if-exists ~/.profile.fish
|
||||||
|
|
||||||
|
status is-interactive && cd $last_pwd
|
||||||
|
|
|
@ -2,6 +2,7 @@ set -g __fish_git_prompt_show_informative_status 1
|
||||||
|
|
||||||
# Defined in /tmp/fish.hyt5lE/fish_prompt.fish @ line 2
|
# Defined in /tmp/fish.hyt5lE/fish_prompt.fish @ line 2
|
||||||
function fish_prompt --description 'Write out the prompt'
|
function fish_prompt --description 'Write out the prompt'
|
||||||
|
set -U last_pwd $PWD
|
||||||
set -l color_cwd
|
set -l color_cwd
|
||||||
set -l suffix
|
set -l suffix
|
||||||
switch "$USER"
|
switch "$USER"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user