From e205151b20b9c0f310074440f71fd7a6deffeda7 Mon Sep 17 00:00:00 2001 From: Pablo Aguiar Date: Tue, 2 Jan 2018 23:49:10 -0200 Subject: [PATCH] Document THEFUCK_OVERRIDDEN_ALIASES --- Shell-aliases.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Shell-aliases.md b/Shell-aliases.md index 1c74fa2..c7c44b8 100644 --- a/Shell-aliases.md +++ b/Shell-aliases.md @@ -25,6 +25,12 @@ To avoid the delay of the shell startup, you could also create an [autoloaded fu Create a file `~/.config/fish/functions/fuck.fish` instead and paste the output of `thefuck --alias` into that file. Fish should start as fast as before. +For cases when you override a command and turn it into an alias (e.g. `alias sed=gsed` or `alias git=hub`), you should add all them to the `THEFUCK_OVERRIDDEN_ALIASES` environment variable, separated by comma. For example, in your `config.fish`: + +```fish +set -x THEFUCK_OVERRIDDEN_ALIASES 'gsed,git' +``` + # Powershell Put this in your Powershell `$PROFILE` on Windows: