Commit Graph

4 Commits (master)

Author SHA1 Message Date
nirenjan 4497e4e3b1 Use command -v to check for presence of a command
With a fresh install of zsh on OSX Catalina, the which command returns
text in stdout even if there is no corresponding command. Replacing it
with `command -v` ensures that the test does not give a false positive.
2020-09-09 07:50:13 -07:00
nirenjan 63656f9fc2 Always (re)set LS_COLORS
Prior to this change, if I changed the dircolors configuration and
restarted the shell, it wouldn't reflect in the new shell because of the
check. I'd have to create a new terminal window to get the new colors.

This change eliminates the check for a set LS_COLORS variable and always
calls dircolors.
2018-11-12 21:16:57 -08:00
nirenjan 5acbda2aeb Move alias for ls into lscolors.zsh
Having the ls alias default to `ls --color=auto` caused it to break on
OSX, since the version of ls that ships with OSX doesn't support the
`--color` option.

This change moves the alias into lscolors, since we already have a check
for OSX vs non-OSX (in my case, Linux). This allows the alias to work as
expected on Linux, while the environment variable LSCOLORS provides the
coloring option on OSX.
2018-10-23 22:21:19 -07:00
nirenjan 8f9698bf75 Add Zsh config files
Prior to this change, I was using Bash as the default shell, but I have
now started using Zsh, which has more features.

This change adds the zshrc and related plugin files to source control
and installs them along with the bashrc files. This also updates tmux to
use zsh as the default shell and command.
2018-10-19 15:45:51 -07:00