Commit Graph

13 Commits

Author SHA1 Message Date
mcarton 9a069daada Make `thefuck-alias` generated alias a parameter 2015-07-20 13:35:22 +02:00
Pablo Santiago Blum de Aguiar 891fbe7ed1 fix(fish.get_aliases): do not include overridden aliases
Fish Shell overrides some shell commands, such as `cd` and `ls` and
therefore some rules fail to match. The following aliases are excluded
by default:

 * cd
 * grep
 * ls
 * man
 * open

To change them, one can use the `TF_OVERRIDDEN_ALIASES` environment
variable such as:

```
set TF_OVERRIDDEN_ALIASES 'cd,grep,ls'
```

Fix #262
2015-07-13 22:53:15 -03:00
nvbn 4b4e7acc0f #N/A Add ability to get shell history 2015-07-10 16:42:21 +03:00
Pablo Santiago Blum de Aguiar c08d9125e4 refact(shells): use an env var TF_ALIAS to keep the name of the alias
This environment variable may be used by any rule to decide whether it
matches or not.
2015-06-10 20:50:49 -03:00
Pablo Santiago Blum de Aguiar be682170e5 test(shells): add `fuck` alias to collection of aliases 2015-06-10 20:49:28 -03:00
Pablo Santiago Blum de Aguiar 9debcdf676 fix(shells::Fish): avoid looping when calling `fuck` twice
Or whatever the `thefuck` function name is.

Signed-off-by: Pablo Santiago Blum de Aguiar <scorphus@gmail.com>
2015-05-27 00:39:47 -03:00
Pablo Santiago Blum de Aguiar 551e35e3b6 refact(shells): add support to Fish functions
Signed-off-by: Pablo Santiago Blum de Aguiar <scorphus@gmail.com>
2015-05-21 23:56:37 -03:00
nvbn 5319871326 #209 add `get_aliases` to shells 2015-05-20 16:56:42 +03:00
Pablo Santiago Blum de Aguiar 1b5c935f30 feat(shells): add specific actions for the Fish shell
Signed-off-by: Pablo Santiago Blum de Aguiar <scorphus@gmail.com>
2015-05-17 12:57:45 -03:00
nvbn 36d80859a4 Add tox config 2015-05-07 13:51:27 +02:00
nvbn 2b12b4bfce Improve tests with `mocker` 2015-05-07 13:42:52 +02:00
nvbn 3f2fe0d275 #89 #152 Use shell history 2015-05-04 04:44:16 +02:00
nvbn fcc2a1a40a #128 #69 add support of shell specific actions, add alias expansion for bash and zsh 2015-05-03 12:46:01 +02:00