New answers tagged

0

Solution This should do the trick: PS4='+%x:%I>' zsh -i -x -c '' |& grep subl This should print something like +/Users/brandon/.zshrc.d/aliases.zsh:32>alias 'subl=/Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/subl' Meaning that in file /Users/brandon/.zshrc.d/aliases.zsh (just for example) on line 32 the command alias 'subl=...


3

Quoting + in that context has not desired effect effect because it only tells zle (zsh's command line editor) to take + literally. The command alias itself still recieves the string "+x" as first command line argument and thus tries to parse it as option. If you pass the option -- to the alias command, everything after it will be used as an argument, even ...


0

Depending on if it is a login shell or an interactive one, bash will source either the ~/.bash_profile or the ~/.bashrc. iTerm is most likely looking for ~/.bashrc. You can simply put a line at the beginning of each file: At the top of ~/.bash_profile export BASH_CONF="bash_profile" At the top of ~/.bashrc export BASH_CONF="bashrc" And then simply ...



Top 50 recent answers are included