Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #
- # Executes commands at the start of an interactive session.
- #
- # Authors:
- # Sorin Ionescu <sorin.ionescu@gmail.com>
- #
- # Source Prezto.
- if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
- source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
- fi
- # Customize to your needs...
- # ---------------------------
- # -------------------------------------------------------------------
- # Sources
- # -------------------------------------------------------------------
- source ~/.zsh-nvm/zsh-nvm.plugin.zsh
- source ~/z.sh
- source ~/.zsh-emojis/emojis.plugin.zsh
- # Default theme
- ZSH_THEME="pure"
- # Uncomment following line if you want red dots to be displayed while waiting for completion
- COMPLETION_WAITING_DOTS="true"
- # -------------------------------------------------------------------
- # Git
- # -------------------------------------------------------------------
- ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[magenta]%}"
- ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
- ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!"
- ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[green]%}?"
- ZSH_THEME_GIT_PROMPT_CLEAN=""
- alias ga='git add -A'
- alias gp='git push'
- alias gl='git log'
- alias gs='git status'
- alias gd='git diff'
- alias gm='git commit -m'
- alias gma='git commit -am'
- alias gb='git branch'
- alias gc='git checkout'
- alias gra='git remote add'
- alias grr='git remote rm'
- alias gpu='git pull'
- alias gcl='git clone'
- alias gta='git tag -a -m'
- alias gf='git reflog'
- # leverage an alias from the ~/.gitconfig
- alias gh='git hist'
- alias glg1='git lg1'
- alias glg2='git lg2'
- alias glg='git lg'
- # return my IP address
- function myip() {
- ifconfig lo0 | grep 'inet ' | sed -e 's/:/ /' | awk '{print "lo0 : " $2}'
- ifconfig en0 | grep 'inet ' | sed -e 's/:/ /' | awk '{print "en0 (IPv4): " $2 " " $3 " " $4 " " $5 " " $6}'
- ifconfig en0 | grep 'inet6 ' | sed -e 's/ / /' | awk '{print "en0 (IPv6): " $2 " " $3 " " $4 " " $5 " " $6}'
- ifconfig en1 | grep 'inet ' | sed -e 's/:/ /' | awk '{print "en1 (IPv4): " $2 " " $3 " " $4 " " $5 " " $6}'
- ifconfig en1 | grep 'inet6 ' | sed -e 's/ / /' | awk '{print "en1 (IPv6): " $2 " " $3 " " $4 " " $5 " " $6}'
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement