add functions for br and thefuck in fish
This commit is contained in:
parent
7f39d41d2f
commit
48ea8cd477
2 changed files with 10 additions and 0 deletions
1
fish/.config/fish/conf.d/br.fish
Symbolic link
1
fish/.config/fish/conf.d/br.fish
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/home/bca/.local/share/broot/launcher/fish/1.fish
|
9
fish/.config/fish/functions/fuck.fish
Normal file
9
fish/.config/fish/functions/fuck.fish
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
function fuck -d "Correct your previous console command"
|
||||||
|
set -l fucked_up_command $history[1]
|
||||||
|
env TF_SHELL=fish TF_ALIAS=fuck PYTHONIOENCODING=utf-8 thefuck $fucked_up_command THEFUCK_ARGUMENT_PLACEHOLDER $argv | read -l unfucked_command
|
||||||
|
if [ "$unfucked_command" != "" ]
|
||||||
|
eval $unfucked_command
|
||||||
|
builtin history delete --exact --case-sensitive -- $fucked_up_command
|
||||||
|
builtin history merge ^ /dev/null
|
||||||
|
end
|
||||||
|
end
|
Loading…
Add table
Reference in a new issue