[bugfix] virtualfish slow down fish dramatically
This commit is contained in:
parent
5ebbb9f368
commit
0d747a4a9d
|
@ -1,5 +1,5 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
#
|
|
||||||
set -gx EDITOR nvim
|
set -gx EDITOR nvim
|
||||||
|
|
||||||
# enable fzf completion hotkey
|
# enable fzf completion hotkey
|
||||||
|
@ -45,10 +45,6 @@ append-path-if-exists ~/.local/bin
|
||||||
append-path-if-exists ~/.yarn/bin
|
append-path-if-exists ~/.yarn/bin
|
||||||
append-path-if-exists /snap/bin
|
append-path-if-exists /snap/bin
|
||||||
|
|
||||||
# source virtualfish if available
|
|
||||||
if which pip &>/dev/null && pip show virtualfish &>/dev/null
|
|
||||||
eval (python -m virtualfish auto_activation)
|
|
||||||
end
|
|
||||||
|
|
||||||
# datetime in filename format
|
# datetime in filename format
|
||||||
function dt
|
function dt
|
||||||
|
@ -113,16 +109,22 @@ if test -z "$STARTED" -a -z "$DISPLAY" -a -n "$XDG_VTNR" -a "$XDG_VTNR" -eq "1"
|
||||||
startx
|
startx
|
||||||
end
|
end
|
||||||
|
|
||||||
alias k="kubectl"
|
if status is-interactive
|
||||||
alias kcc="k config get-contexts"
|
alias k="kubectl"
|
||||||
alias kcu="k config use-context"
|
alias kcc="k config get-contexts"
|
||||||
alias kgd="k get deployment"
|
alias kcu="k config use-context"
|
||||||
alias ked="k edit deployment"
|
alias kgd="k get deployment"
|
||||||
alias kgp="k get pod -o 'custom-columns=NAME:.metadata.name,IMG:.spec.containers[*].image,STATUS:.status.phase'"
|
alias ked="k edit deployment"
|
||||||
alias kl="k logs -f --all-containers"
|
alias kgp="k get pod -o 'custom-columns=NAME:.metadata.name,IMG:.spec.containers[*].image,STATUS:.status.phase'"
|
||||||
alias issh='ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"'
|
alias kl="k logs -f --all-containers"
|
||||||
alias iscp='scp -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"'
|
alias issh='ssh -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"'
|
||||||
|
alias iscp='scp -o "StrictHostKeyChecking=no" -o "UserKnownHostsFile=/dev/null"'
|
||||||
|
set -q virtualfish || set -U virtualfish (
|
||||||
|
which pip &>/dev/null && pip show virtualfish &>/dev/null && \
|
||||||
|
python -m virtualfish auto_activation
|
||||||
|
)
|
||||||
|
test -n $virtualfish && eval $virtualfish
|
||||||
|
cd $last_pwd
|
||||||
|
source-file-if-exists ~/.profile.fish
|
||||||
|
end
|
||||||
|
|
||||||
status is-interactive && cd $last_pwd
|
|
||||||
|
|
||||||
source-file-if-exists ~/.profile.fish
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user