Browse Source

zshrc: Aliases to reload and edit zsh config files.

Manipulate both global and local configs.
master
Nick Plekhanov 9 years ago
parent
commit
2fabbb8328
  1. 7
      shell/shell_aliases

7
shell/shell_aliases

@ -189,6 +189,13 @@ alias hidedotfiles="defaults write com.apple.finder AppleShowAllFiles -bool fals
alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder" alias showdesktop="defaults write com.apple.finder CreateDesktop -bool true && killall Finder"
alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder" alias hidedesktop="defaults write com.apple.finder CreateDesktop -bool false && killall Finder"
# zshrc config
alias zshrc="${EDITOR} ${$(cd -P $(dirname $0) && cd ..; pwd -P)}"
alias reload="source ~/.zshrc && echo 'Shell config reloaded from ~/.zshrc'"
# zsh.local config
alias localrc="if [[ -a ~/.zsh.local ]]; then ${EDITOR} ~/.zsh.local; fi"
# Update installed Ruby gems, Homebrew, npm, and their installed packages # Update installed Ruby gems, Homebrew, npm, and their installed packages
alias brew_update="brew -v update; brew upgrade --force-bottle --cleanup; brew cleanup; brew cask cleanup; brew prune; brew doctor; npm-check -g -u" alias brew_update="brew -v update; brew upgrade --force-bottle --cleanup; brew cleanup; brew cask cleanup; brew prune; brew doctor; npm-check -g -u"
alias update_brew_npm_gem='brew_update; npm install npm -g; npm update -g; sudo gem update --system; sudo gem update --no-rdoc --no-ri' alias update_brew_npm_gem='brew_update; npm install npm -g; npm update -g; sudo gem update --system; sudo gem update --no-rdoc --no-ri'

Loading…
Cancel
Save