thefuck
This commit is contained in:
parent
7768ba38be
commit
86f24dde3e
16
zsh/.zimrc
16
zsh/.zimrc
@ -192,6 +192,22 @@ alias -g tb="nc termbin.com 9999 | xclip -selection clipboard"
|
|||||||
alias -g sshot='xfce4-screenshooter -o "$(which xclip) -i -t image/png -selection clipboard" $@'
|
alias -g sshot='xfce4-screenshooter -o "$(which xclip) -i -t image/png -selection clipboard" $@'
|
||||||
alias -g steam-wine='WINEDEBUG=-all wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe -no-cef-sandbox >/dev/null 2>&1 &'
|
alias -g steam-wine='WINEDEBUG=-all wine ~/.wine/drive_c/Program\ Files\ \(x86\)/Steam/Steam.exe -no-cef-sandbox >/dev/null 2>&1 &'
|
||||||
|
|
||||||
|
# thefuck
|
||||||
|
fuck () {
|
||||||
|
TF_PYTHONIOENCODING=$PYTHONIOENCODING;
|
||||||
|
export TF_SHELL=zsh;
|
||||||
|
export TF_ALIAS=fuck;
|
||||||
|
export TF_SHELL_ALIASES=$(alias);
|
||||||
|
export TF_HISTORY="$(fc -ln -10)";
|
||||||
|
export PYTHONIOENCODING=utf-8;
|
||||||
|
TF_CMD=$(
|
||||||
|
thefuck THEFUCK_ARGUMENT_PLACEHOLDER $@
|
||||||
|
) && eval $TF_CMD;
|
||||||
|
unset TF_HISTORY;
|
||||||
|
export PYTHONIOENCODING=$TF_PYTHONIOENCODING;
|
||||||
|
test -n "$TF_CMD" && print -s $TF_CMD
|
||||||
|
}
|
||||||
|
|
||||||
# Set (optional) pacman front-end.
|
# Set (optional) pacman front-end.
|
||||||
# zpacman_frontend='powerpill'
|
# zpacman_frontend='powerpill'
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user