Tab completion for aliased sub commands in zsh: alias gco=’git checkout’
You don’t need to do anything, especially compdef g=’git’, it should work without any configuration. You would need something only if you used function in place of an alias.
You don’t need to do anything, especially compdef g=’git’, it should work without any configuration. You would need something only if you used function in place of an alias.
From man tmux: default-shell path Specify the default shell. This is used as the login shell for new windows when the default-command option is set to empty, and must be the full path of the executable. When started tmux tries to set a default value from the first suitable of the SHELL environment variable, the … Read more
In order to see the behavior compatible with Bourne shell, you’d need to set the option SH_WORD_SPLIT: setopt shwordsplit # this can be unset by saying: unsetopt shwordsplit things=”one two” for one_thing in $things; do echo $one_thing done would produce: one two However, it’s recommended to use an array for producing word splitting, e.g., things=(one … Read more
Not an answer, but maybe a solution… Uninstall Node via brew: brew uninstall node Then download Node from https://nodejs.org/en/download/ and install. npm should then “just work”.
I was actually searching for the same answer. But my needs was a little more specific since I only wanted to add a newline in the agnoster theme, the one I’m using now. In my research, I find a lot of forked themes that already do it, but I thought that this was an overkill … Read more
I’m using it with VIM mode. Basically ESC-v (or simply v if already in command mode) opens the terminal. It is setup by: autoload -U edit-command-line zle -N edit-command-line bindkey -M vicmd v edit-command-line Here is how to setup it in emacs mode: autoload edit-command-line zle -N edit-command-line bindkey ‘^Xe’ edit-command-line Use ‘bindkey -e’ to … Read more
Try this: bindkey ‘^[[Z’ reverse-menu-complete If this doesn’t work, try running executing zsh like this (which does setopt MENU_COMPLETE): zsh -Y and then try again!
Answer recommended by Google Cloud Collective
Both bash and zsh supports scripts that completes printed command when you press <TAB>. The feature is called Programmable completion, and you can find more details about that here: zsh completion. Fortunately, you don’t need to write your own script – kubectl provides it for zsh > 5.2. Try running this command: source <(kubectl completion … Read more
Same problem with debian unstable, Ubuntu jaunty, both ship zsh 4.3.9. I know of multiple people with different configurations. After reading http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=514152 I added zstyle ‘:completion:*’ special-dirs true to my config and now everything works fine again.