mccamel Posted February 10, 2013 Share Posted February 10, 2013 I use zsh as my primary shell and have added a few crucial directories to $PATH in my ~/.zshenv: - $HOME/.rvm/bin (allows use of rvm ruby) - /usr/local/bin (Homebrew binaries) - /usr/local/mysql/bin (mysql executable) - a personal scripts directory This prevents me from needing to specify absolute paths in many of my scripts. As far as I know, bash lacks a file that is automatically sourced for scripts (non-interactive shells); instead you need to set the BASH_ENV environment variable to point to such a file. I'd like to avoid setting this in all of my Alfred bash scripts, so typically I just run `zsh -c "PATHTOMYSCRIPT ARGS"` for Alfred workflows. This is just a hoop I have to jump through though, and it would be nice if /usr/bin/zsh were added directly to the language list. Link to comment Share on other sites More sharing options...
jdfwarrior Posted February 10, 2013 Share Posted February 10, 2013 This is something that is not likely to happen as Andrew usually tries to keep items like this to a minimal set that are included on everyones system. Zsh is something that is installed by the end user and shouldn't be presented as an option to everyone to prevent confusion. Link to comment Share on other sites More sharing options...
ctwise Posted February 10, 2013 Share Posted February 10, 2013 This is something that is not likely to happen as Andrew usually tries to keep items like this to a minimal set that are included on everyones system. Zsh is something that is installed by the end user and shouldn't be presented as an option to everyone to prevent confusion. zsh is part of the base os/x install. Here's the list of all of the built-in shells: /bin/bash, /bin/csh, /bin/ksh, /bin/sh, /bin/tcsh, /bin/zsh. The list of all "known" shells is in /etc/shells. It would be awesome if any one of them could be used in place of bash. Link to comment Share on other sites More sharing options...
jdfwarrior Posted February 10, 2013 Share Posted February 10, 2013 Yeah I was just coming back to correct my post. There may be a possibility of this. Do you know if Zsh is installed by default all the way back to 10.6? Link to comment Share on other sites More sharing options...
ctwise Posted February 10, 2013 Share Posted February 10, 2013 Yeah I was just coming back to correct my post. There may be a possibility of this. Do you know if Zsh is installed by default all the way back to 10.6? It goes back to 10.2. So, yes. :-) Link to comment Share on other sites More sharing options...
mccamel Posted February 10, 2013 Author Share Posted February 10, 2013 Couldn't there also be an option to simply add your own entry to "Languages"? This would avoid cluttering the list with all of those different shells while allowing anyone who wanted to use one to do so. untidey 1 Link to comment Share on other sites More sharing options...
dch Posted February 11, 2013 Share Posted February 11, 2013 Also bear in mind customer base, people using Alfred are far more likely than the average user to have installed custom shells, homebrew and macports etc. Anyway +1, I'm a heavy zsh user. Moar Integration! Link to comment Share on other sites More sharing options...
jdfwarrior Posted February 11, 2013 Share Posted February 11, 2013 Also bear in mind customer base, people using Alfred are far more likely than the average user to have installed custom shells, homebrew and macports etc. Anyway +1, I'm a heavy zsh user. Moar Integration! There is nothing to support this statement. People making workflows may be more likely to have additional stuff installed but that's about it. I don't use additional shells, homebrew, or macports. Tyler Eich 1 Link to comment Share on other sites More sharing options...
Andrew Posted February 12, 2013 Share Posted February 12, 2013 There is a good chance I'll add zsh at some point to the default script languages, but if I do, it won't be run in interactive mode as this is likely to break the workflow when sharing. I also prefer bootstrapping from any language across to my actual workflow (much like David does in many of his workflows), as this allows you to use your own development environment. Link to comment Share on other sites More sharing options...
mccamel Posted February 12, 2013 Author Share Posted February 12, 2013 That would be great Andrew-- and even non-interactive mode would solve my problem since ~/.zshenv is sourced for non-interactive. Link to comment Share on other sites More sharing options...
Andrew Posted February 12, 2013 Share Posted February 12, 2013 Quick update, b131 adds /bin/zsh to the script types Link to comment Share on other sites More sharing options...
mccamel Posted February 13, 2013 Author Share Posted February 13, 2013 Ask and thou shalt receive. Awesome Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now