huffshell icon indicating copy to clipboard operation
huffshell copied to clipboard

bash/zsh operators should be exluded from suggests

Open Civil opened this issue 13 years ago • 2 comments

I've ran huffshell and get this suggestion:

for 30: 'for' => f
  I 30: 'for I' => fi
    in 30: 'for I in' => fii

this is wrong, you can't redefine "fi" in bash.

Civil avatar Aug 13 '12 11:08 Civil

I hadn't thought to create a list of shell reserve words and exclude them from the alias list. It is an interesting idea.

The alias suggestion capabilities are a very simple at this point. This is a potentially nice improvement.

paulmars avatar Aug 13 '12 15:08 paulmars

It works for me:

$ alias fi="ls -l"
$ fi
total 96
-rw-r--r--  1 baptiste  staff     89 22 déc 11:44 Gemfile
-rw-r--r--  1 baptiste  staff    579 23 déc 13:47 Gemfile.lock
-rw-r--r--  1 baptiste  staff    134 22 déc 11:44 Rakefile
-rwxr-xr-x  1 baptiste  staff   2699 22 déc 11:44 Readme.md
...

bfontaine avatar Dec 23 '15 12:12 bfontaine