Terminal - Alias Oh My ZSH
# Path to your oh-my-zsh installation.
export ZSH=/Users/Leo/.oh-my-zsh
### Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="cobalt2"
# ZSH_THEME="agnoster"
### Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
### Uncomment the following line to use hyphen-insensitive completion.
### Case sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"
### Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
### Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
### Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"
### Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
### Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
### Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
### Uncomment the following line if you want to disable marking untracked files
### under VCS as dirty. This makes repository status check for large repositories
### much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"
### Uncomment the following line if you want to change the command execution time
### stamp shown in the history command output.
### The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"
### Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
### Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
### Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
### Example format: plugins=(rails git textmate ruby lighthouse)
### Add wisely, as too many plugins slow down shell startup.
# plugins=(git node npm bower brew osx extract z)
### User configuration
export PATH="$PATH:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/sbin"
# export MANPATH="/usr/local/man:$MANPATH"
source $ZSH/oh-my-zsh.sh
### You may need to manually set your language environment
# export LANG=en_US.UTF-8
### Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi
### Compilation flags
# export ARCHFLAGS="-arch x86_64"
### ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
### Set personal aliases, overriding those provided by oh-my-zsh libs,
### plugins, and themes. Aliases can be placed here, though oh-my-zsh
### users are encouraged to define aliases within the ZSH_CUSTOM folder.
### For a full list of active aliases, run `alias`.
#
### Example aliases
# alias editzsh='open -a "Atom" ~/.zshrc'
alias editzsh='open -a "Sublime Text" ~/.zshrc'
alias subl='open -a "Sublime Text"'
alias cl=clear
### Some more alias to avoid making mistakes:
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias cl='clear'
alias md='mkdir -p'
alias mc='mc -c'
alias ls='ls -GFh'
alias lsa='ls -aGFh'
alias l='ls -lGF'
alias la='ls -alGFh'
alias dir='ls -GFh'
alias start-win='VBoxManage startvm "Windows 10"'
alias trall='trash * && trash .*'
alias marked='open -a "marked 2"'
alias finder='open -a "finder"'
alias pfinder='open -a "path finder"'
alias yummy='open -a "Yummy FTP"'
alias npmup='npm-check-updates -u'
###################################################################
### Scotch-Box Start
alias scotchonly='git clone https://github.com/scotch-io/scotch-box.git . && vagrant up'
alias scotchwpdist='git clone https://github.com/scotch-io/scotch-box.git && mv scotch-box/public public && mv scotch-box/Vagrantfile Vagrantfile && rm -rf scotch-box && git clone --depth 1 https://github.com/flurinduerst/WPDistillery.git && mv WPDistillery/config.yml config.yml && mv WPDistillery/setup.sh setup.sh && rm -rf WPDistillery'
### Vagrant Befehle
alias vagstart='vagrant up'
alias vagstop='vagrant halt'
alias vagpause='vagrant resume'
alias vagssh='vagrant ssh'
alias vagstat='vagrant status'
### Include in Vagrantfile as config for plugin hostmanager
# config.hostsupdater.remove_on_suspend = false
### Allow passwordless startup of Vagrant with vagrant-hostsupdater.
# sudo visudo
# Cmnd_Alias VAGRANT_HOSTS_ADD = /bin/sh -c echo "*" >> /etc/hosts
# Cmnd_Alias VAGRANT_HOSTS_REMOVE = /usr/bin/env sed -i -e /*/ d /etc/hosts
# %admin ALL=(root) NOPASSWD: VAGRANT_HOSTS_ADD, VAGRANT_HOSTS_REMOVE
### Eigene config.yml
alias scotchconfig='rm -f config.yml && cp ~/Sites/config.eigene.scotchbox.yml config.yml'
alias scotchstart='vagrant up && vagrant ssh'
### Folgende Befehle werden nach vagrant ssh eingegeben
# sudo locale-gen de_DE.UTF-8
# sudo wp cli update --allow-root
# cd /var/www && bash setup.sh
### Scotch-Box Ende
###################################################################
###################################################################
### VCCW-Box Start
alias vccwunzip='unzip vccw-3.0.5.zip && mv vccw-3.0.5/* . && mv vccw-3.0.5/.* . && rm -rf vccw-*'
### VCCW-Box Ende
###################################################################
### Vagrant VVV Start
alias vvde='vv create --locale de_DE'
alias vvblankdb='vv create --blank-with-db'
alias vvblank='vv create --blank'
### Vagrant VVV Ende
### WordPress Installation and Backup
alias wpback='./backup.sh && ./backupPlugins.sh && ./backupThemes.sh'
### Node Umgebungen
alias production='export NODE_ENV=production'
alias development='export NODE_ENV=development'
alias nodeenv='echo $NODE_ENV'
### Some of my goto commands
alias gohome='cd ~'
alias godesk='cd ~/desktop'
alias goweb='cd ~/Sites'
alias goscotch='cd ~/Sites/scotchboxen'
alias godowndo='cd ~/Downloads-ToDo'
alias godown='cd ~/Downloads'
alias goasset='cd ~/Sites/_+Websites\ Assets'
alias godrop='cd ~/Dropbox'
### This command will render a listing with the latest commits first and original commit last
# alias gitlog='git log --oneline | nl -v0 | sed "s/^ \+/&HEAD~/"'
### This alias recursively destroys all .DS_Store files in the folder I am currently in
alias killDS='find . -name *.DS_Store -type f -delete'
alias killUnder='find . -name *._ -type f -delete'
alias killFolder='find . -name *. -type d -delete'
alias killAll='killDS && killUnder && killFolder'
### This alias reloads this file
alias reload_profile='. ~/.profile'
alias zs="source ~/.zshrc"
### include Z, yo
. ~/z.sh
### This forces a shutdown on Mac
alias poweroff='sudo /sbin/shutdown -h now'
### Fix Homebrew Can't write to directory
alias fix_brew='sudo chown -R $USER /usr/local && chown -R $USER /usr/local/bin && chown -R $USER /usr/local/share/man && chown -R $USER /usr/local/share/man/man1'
export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
export NVM_DIR="$HOME/.nvm"
source $(brew --prefix nvm)/nvm.sh
export PATH=$PATH:/Applications/MAMP/Library/bin
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
source $( echo $(which vv)-completions)