diff --git a/fish/.config/fish/conf.d/br.fish b/fish/.config/fish/conf.d/br.fish new file mode 120000 index 0000000..604cf3e --- /dev/null +++ b/fish/.config/fish/conf.d/br.fish @@ -0,0 +1 @@ +/home/bca/.local/share/broot/launcher/fish/1.fish \ No newline at end of file diff --git a/fish/.config/fish/functions/fuck.fish b/fish/.config/fish/functions/fuck.fish new file mode 100644 index 0000000..90d4f19 --- /dev/null +++ b/fish/.config/fish/functions/fuck.fish @@ -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