|
@@ -1,11 +1,35 @@
|
|
|
|
+ZSH=$HOME/.oh-my-zsh
|
|
export ZSH="/Users/david/.oh-my-zsh"
|
|
export ZSH="/Users/david/.oh-my-zsh"
|
|
-export PATH=$HOME/bin:/usr/local/bin:$PATH
|
|
|
|
|
|
|
|
ZSH_THEME="dpoggi"
|
|
ZSH_THEME="dpoggi"
|
|
|
|
|
|
-plugins=(history-substring-search git gulp grunt textmate)
|
|
|
|
|
|
+###### Plugins ######
|
|
|
|
+plugins=(
|
|
|
|
+ git
|
|
|
|
+ gulp
|
|
|
|
+ grunt
|
|
|
|
+ textmate
|
|
|
|
+ vscode
|
|
|
|
+ history-substring-search
|
|
|
|
+ zsh-autosuggestions
|
|
|
|
+ zsh-syntax-highlighting
|
|
|
|
+)
|
|
|
|
|
|
|
|
+###### Keys ######
|
|
|
|
+bindkey -v
|
|
|
|
+bindkey '^P' up-history
|
|
|
|
+bindkey '^N' down-history
|
|
|
|
+bindkey '^?' backward-delete-char
|
|
|
|
+bindkey '^h' backward-delete-char
|
|
|
|
+bindkey '^w' backward-kill-word
|
|
|
|
+bindkey '^r' history-incremental-search-backward
|
|
|
|
+bindkey '^[[A' history-substring-search-up
|
|
|
|
+bindkey '^[[B' history-substring-search-down
|
|
|
|
+bindkey "$terminfo[kcuu1]" history-substring-search-up
|
|
|
|
+bindkey "$terminfo[kcud1]" history-substring-search-down
|
|
|
|
+export KEYTIMEOUT=1
|
|
|
|
|
|
|
|
+###### Options ######
|
|
# HIST_STAMPS="mm/dd/yyyy"
|
|
# HIST_STAMPS="mm/dd/yyyy"
|
|
# ZSH_CUSTOM=/path/to/new-custom-folder
|
|
# ZSH_CUSTOM=/path/to/new-custom-folder
|
|
# zstyle ':omz:update' frequency 13
|
|
# zstyle ':omz:update' frequency 13
|
|
@@ -32,8 +56,16 @@ plugins=(history-substring-search git gulp grunt textmate)
|
|
# export SSH_KEY_PATH="~/.ssh/dsa_id"
|
|
# export SSH_KEY_PATH="~/.ssh/dsa_id"
|
|
|
|
|
|
source $ZSH/oh-my-zsh.sh
|
|
source $ZSH/oh-my-zsh.sh
|
|
-alias zshconfig="mate ~/.zshrc"
|
|
|
|
-alias ohmyzsh="mate ~/.oh-my-zsh"
|
|
|
|
|
|
+
|
|
|
|
+alias zshconfig="vc ~/.zshrc"
|
|
|
|
+alias ohmyzsh="vc ~/.oh-my-zsh"
|
|
|
|
+
|
|
|
|
+###### LIST ######
|
|
|
|
+alias l='ls -lFh' #size,show type,human readable
|
|
|
|
+alias la='ls -lAFh' #long list,show almost all,show type,human readable
|
|
|
|
+alias lr='ls -tRFh' #sorted by date,recursive,show type,human readable
|
|
|
|
+alias lt='ls -ltFh' #long list,sorted by date,show type,human readable
|
|
|
|
+alias ll='ls -l' #long list
|
|
|
|
|
|
###### GIT #######
|
|
###### GIT #######
|
|
#alias zshconfig="mate ~/.zshrc"
|
|
#alias zshconfig="mate ~/.zshrc"
|
|
@@ -49,12 +81,15 @@ alias gpcm="git push code master"
|
|
alias gpod="git push origin dev"
|
|
alias gpod="git push origin dev"
|
|
alias gpcd="git push code dev"
|
|
alias gpcd="git push code dev"
|
|
|
|
|
|
-###### LIST ######
|
|
|
|
-alias l='ls -lFh' #size,show type,human readable
|
|
|
|
-alias la='ls -lAFh' #long list,show almost all,show type,human readable
|
|
|
|
-alias lr='ls -tRFh' #sorted by date,recursive,show type,human readable
|
|
|
|
-alias lt='ls -ltFh' #long list,sorted by date,show type,human readable
|
|
|
|
-alias ll='ls -l' #long list
|
|
|
|
|
|
+####### BREW #########
|
|
|
|
+alias brewp='brew pin'
|
|
|
|
+alias brews='brew list -1'
|
|
|
|
+alias brewsp='brew list --pinned'
|
|
|
|
+alias bubo='brew update && brew outdated'
|
|
|
|
+alias bubc='brew upgrade && brew cleanup'
|
|
|
|
+alias bubu='bubo && bubc'
|
|
|
|
+alias bcubo='brew update && brew cask outdated'
|
|
|
|
+alias bcubc='brew cask reinstall $(brew cask outdated) && brew cleanup'
|
|
|
|
|
|
##### NPM #####
|
|
##### NPM #####
|
|
alias nit="npm init --yes"
|
|
alias nit="npm init --yes"
|
|
@@ -90,27 +125,8 @@ _laravel () {
|
|
compdef _laravel artisan
|
|
compdef _laravel artisan
|
|
compdef _laravel pa
|
|
compdef _laravel pa
|
|
|
|
|
|
-####### BREW #########
|
|
|
|
-alias brewp='brew pin'
|
|
|
|
-alias brews='brew list -1'
|
|
|
|
-alias brewsp='brew list --pinned'
|
|
|
|
-alias bubo='brew update && brew outdated'
|
|
|
|
-alias bubc='brew upgrade && brew cleanup'
|
|
|
|
-alias bubu='bubo && bubc'
|
|
|
|
-alias bcubo='brew update && brew cask outdated'
|
|
|
|
-alias bcubc='brew cask reinstall $(brew cask outdated) && brew cleanup'
|
|
|
|
-
|
|
|
|
-
|
|
|
|
-bindkey -v
|
|
|
|
-
|
|
|
|
-bindkey '^P' up-history
|
|
|
|
-bindkey '^N' down-history
|
|
|
|
-bindkey '^?' backward-delete-char
|
|
|
|
-bindkey '^h' backward-delete-char
|
|
|
|
-bindkey '^w' backward-kill-word
|
|
|
|
-bindkey '^r' history-incremental-search-backward
|
|
|
|
|
|
|
|
-bindkey '^[[A' history-substring-search-up
|
|
|
|
-bindkey '^[[B' history-substring-search-down
|
|
|
|
-bindkey "$terminfo[kcuu1]" history-substring-search-up
|
|
|
|
-bindkey "$terminfo[kcud1]" history-substring-search-down
|
|
|
|
|
|
+export PATH=$HOME/bin:/usr/local/bin:$PATH
|
|
|
|
+export NVM_DIR="$HOME/.nvm"
|
|
|
|
+[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
|
|
+[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|