[zsh] adds rvm, alias and shebangs

OS X is stupid and ships with a way old version of Ruby. RVM is the only
solution but it slows the prompt down considerably so I made it OS X
only. Added an alias for tmuxinator as the brew installed version
doesn't alias to mux out of the box. Added shebangs to files to they are
properly syntax highlighted.
This commit is contained in:
Josh Sherman 2016-11-20 11:02:09 -06:00
parent 31028acbc4
commit 945a1365c7
4 changed files with 16 additions and 4 deletions

View file

@ -1,15 +1,21 @@
#!/usr/bin/env zsh
antigen-bundle osx
export GREP_OPTIONS="--color=auto --exclude-dir=${GREP_EXCLUDE_DIR} --exclude-dir=.sass-cache"
source "`brew --prefix`/etc/grc.bashrc"
# Unquarantine files on OSX
alias unquarantine="xattr -r -d com.apple.quarantine *"
source $HOME/.rvm/scripts/rvm
# Requires sudo, saves a step
alias mtr="sudo mtr"
# Because macOS is dumb
alias mux="tmuxinator"
# Unquarantine files on OSX
alias unquarantine="xattr -r -d com.apple.quarantine *"
# Because OS X returns all caps
function uuidgen() {
env uuidgen "$@" | awk '{print tolower($0)}'

View file

@ -1,9 +1,11 @@
#!/bin/zsh
alias node=nodejs
alias pbcopy='xclip -selection clipboard'
alias pbpaste='xclip -selection clipboard -o'
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
test -r $HOME/.dircolors && eval "$(dircolors -b $HOME/.dircolors)" || eval "$(dircolors -b)"
alias ls="ls --color=auto"
GREP_FLAGS=" --color=auto --exclude-dir=${GREP_EXCLUDE_DIR}"

View file

@ -1,3 +1,5 @@
#!/bin/zsh
function username() {
if [[ `whoami` != 'josh' ]]; then
echo %{$FG[248]%}%n

View file

@ -1,3 +1,5 @@
#!/usr/bin/env zsh
DOTFILES=$HOME/.dotfiles
ADOTDIR=$DOTFILES/vendor/zsh-users/antigen/
GREP_EXCLUDE_DIR="{.git,.sass-cache,artwork,node_modules,vendor}"