![]() Aliases are simply displayed as is in the completion menu. That being said, you can attach sort of docstring to your function and they will be printed in the terminal when you ask for completion using TAB. For instance, instead of $1 to capture the first argument that was passed to a function, you have to use $argv, and so on. Some of my Bash/Zsh functions needed some updates, e.g., to accomodate the fact that variable substitution ( $(var) becomes (var)) and function arguments works differently in Fish. Beware not to put tilde to indicate your home directory, but use an aboslute path or a predefined $HOME. Yesterday, I decided to try Fish and I must say this was quite an happy move, especially when I found my way with setting the $PATH variable correctly. All I did was to remove several plugins that I was barely using, notwithstanding the fact that sometimes there were some conflicts between aliases or functions defined in there and shell builtins or other config files (e.g. zshrc config file evolved over time, but I never took the time required to update it to the latest updates of Zsh or Oh-my-zsh. I used the nice Oh-my-zsh framework to add plugins and themes, although I ended up building my own PS1 prompt since none of those provided by the existing themes was to my liking. I have been an happy Zsh user for several years, and zsh has been my main shell on my last three laptops. Here are some thoughts after some days of use. ![]() Recently I decided to switch to the Fish shell, after several years of zsh’ing everythings in a terminal on my Mac, mostly iTerm by the way.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |