Add initial tcsh support. Still require better history support

This commit is contained in:
Hugh Macdonald
2015-05-13 15:55:33 +01:00
parent a83d75991b
commit 7b29b54ac7
2 changed files with 31 additions and 1 deletions
+5
View File
@@ -118,6 +118,11 @@ Or in your `.zshrc`:
alias fuck='eval $(thefuck $(fc -ln -1 | tail -n 1)); fc -R'
```
If you are using `tcsh`:
```tcsh
alias fuck 'set fuckedCmd=`history -h 2 | head -n 1` && eval `thefuck ${fuckedCmd}`'
```
Alternatively, you can redirect the output of `thefuck-alias`:
```bash