1
0
mirror of https://github.com/nvbn/thefuck.git synced 2024-10-06 02:41:10 +01:00

Move aliases for specific shells to wiki

This commit is contained in:
Vladimir Iakovlev 2015-04-27 07:54:40 +02:00
parent 49ed98c8a4
commit cbf6507e1e

View File

@ -110,25 +110,7 @@ alias fuck='eval $(thefuck $(fc -ln -1))'
alias FUCK='fuck'
```
Or in `config.fish`:
```fish
function fuck
eval (thefuck $history[1])
end
```
Or in your Powershell `$PROFILE` on Windows:
```powershell
function fuck {
$fuck = $(thefuck (get-history -count 1).commandline)
if($fuck.startswith("echo")) {
$fuck.substring(5)
}
else { iex "$fuck" }
}
```
[On in your shell config (Bash, Zsh, Fish, Powershell).](/wiki/Shell-aliases)
Changes will be available only in a new shell session.