Created
October 10, 2017 23:06
-
-
Save Joaquin6/f99ec1421298ab20c926b63a33792329 to your computer and use it in GitHub Desktop.
ZSH RC File as of 10/10/2017, with Windows configs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export PATH=/mnt/c/Windows/System32:$PATH | |
export PATH=/cygdrive/c/Users/Joaquin/AppData/Local/atom/bin:$PATH | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# export POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
# export POWERLEVEL9K_RPROMPT_ON_NEWLINE=true | |
# Path to your oh-my-zsh installation. | |
export ZSH=~/.oh-my-zsh | |
# Would you like to use another custom folder than $ZSH/custom? | |
export ZSH_CUSTOM=$ZSH/custom | |
export ZSHA_BASE=$HOME/.zsh-antigen | |
export ZSH_PLUGINS_ALIAS_TIPS_TEXT="Alias tip: " | |
export WORKON_HOME=$HOME/.virtualenvs | |
export PROMPT_COMMAND="${PROMPT_COMMAND:+$PROMPT_COMMAND ;} history -a" | |
export ADOTDIR=$HOME/.antigen | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="robbyrussell" | |
# 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 | |
# source $ZSH/oh-my-zsh.sh | |
source $HOME/antigen/antigen.zsh | |
# if rbenv is present, configure it for use | |
if which rbenv &> /dev/null; then | |
# Put the rbenv entry at the front of the line | |
export PATH=$HOME/.rbenv/bin:$PATH | |
# enable shims and auto-completion | |
if [ -d $HOME/.rbenv ]; then | |
eval "$(rbenv init -)" | |
fi | |
fi | |
# Load the oh-my-zsh's library. | |
antigen use oh-my-zsh | |
# Which plugins would you like to load? (plugins can be found in $HOME/.oh-my-zsh/plugins/*) | |
# Custom plugins may be added to $HOME/.oh-my-zsh/custom/plugins/ | |
antigen bundles <<EOBUNDLES | |
extract | |
git | |
git-prompt | |
ssh-agent | |
rails | |
ruby | |
gem | |
rbenv | |
rsync | |
sublime | |
cask | |
node | |
npm | |
nvm | |
sudo | |
yarn | |
yum | |
man | |
z | |
zeus | |
zsh_reload | |
# Python Plugins | |
pip | |
python | |
pyenv | |
pylint | |
virtualenv | |
postgres | |
# OS specific plugins | |
cygwin | |
systemd | |
systemadmin | |
ubuntu | |
gnu-utils | |
# The heroku tool helper plugin. | |
heroku | |
EOBUNDLES | |
# Syntax highlighting bundle. | |
antigen bundle zsh-users/zsh-syntax-highlighting # https://github.com/zsh-users/zsh-syntax-highlighting | |
antigen bundle zsh-users/zsh-history-substring-search # https://github.com/zsh-users/zsh-history-substring-search | |
antigen bundle zsh-users/zsh-autosuggestions # https://github.com/zsh-users/zsh-autosuggestions | |
antigen bundle $ZSHA_BASE/bundles/git-completion | |
antigen bundle $ZSHA_BASE/bundles/virtualenv | |
antigen bundle lukechilds/zsh-nvm | |
antigen bundle djui/alias-tips # https://github.com/djui/alias-tips | |
antigen bundle jocelynmallon/zshmarks # https://github.com/jocelynmallon/zshmarks | |
antigen bundle Joaquin6/git-aliases # https://github.com/Joaquin6/git-aliases | |
# Suuply the theme | |
antigen theme robbyrussell | |
# Tell antigen that you're done. | |
antigen apply | |
# User configuration | |
# Customise autosuggestion color | |
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=green,bold' | |
# Load autojump | |
[[ -s $HOME/.autojump/etc/profile.d/autojump.sh ]] && source $HOME/.autojump/etc/profile.d/autojump.sh | |
autoload -U compinit && compinit -u | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# ssh | |
export SSH_KEY_PATH="$HOME/.ssh/id_rsa" | |
# eval "$(direnv hook zsh)" | |
# 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 zshconfig="mate ~/.zshrc" | |
alias ohmyzsh="mate ~/.oh-my-zsh" | |
# Figure out the SHORT hostname | |
if [[ "$OSTYPE" = darwin* ]]; then | |
# macOS's $HOST changes with dhcp, etc. Use ComputerName if possible. | |
# SHORT_HOST=$(scutil --get ComputerName 2>/dev/null) || SHORT_HOST=${HOST/.*/} | |
else | |
alias open='explorer .' | |
fi | |
alias l='ls -la' | |
alias sl=ls | |
alias ls='ls -GFh' # Preferred 'ls' implementation | |
alias ll='ls -GFlAhp' | |
alias lr='ls -R | grep ":$" | sed -e '\''s/:$//'\'' -e '\''s/[^-][^\/]*\//--/g'\'' -e '\''s/^/ /'\'' -e '\''s/-/|/'\'' | less' | |
cd() { builtin cd "$@"; ll; } # Always list directory contents upon 'cd' | |
alias cd..='cd ../' # Go back 1 directory level (for fast typers) | |
alias ..='cd ../' # Go back 1 directory level | |
alias ...='cd ../../' # Go back 2 directory levels | |
alias .3='cd ../../../' # Go back 3 directory levels | |
alias .4='cd ../../../../' # Go back 4 directory levels | |
alias .5='cd ../../../../../' # Go back 5 directory levels | |
alias .6='cd ../../../../../../' # Go back 6 directory levels | |
alias edit=$EDITOR # edit: Opens any file in sublime editor | |
alias ~="cd ~" # ~: Go Home | |
alias c='clear' # c: Clear terminal display | |
alias path='echo -e ${PATH//:/\\n}' # path: Echo all executable Paths | |
alias show_options='shopt' # Show_options: display bash options settings | |
alias fix_stty='stty sane' # fix_stty: Restore terminal settings when screwed up | |
alias cic='set completion-ignore-case On' # cic: Make tab-completion case-insensitive | |
alias UN='echo $USER' # UN: Echo Username | |
alias qfind="find . -name " # qfind: Quickly search for file | |
alias gst='git status' | |
alias gc='git commit' | |
alias gco='git checkout' | |
alias ga='git add' | |
alias gl="git log --all --graph --format=format:'%C(bold blue)%h%C(reset) - %C(black)%s%C(reset) %C(bold magenta)%d%C(reset)'" | |
ff () { /usr/bin/find . -name "$@" ; } # ff: Find file under the current directory | |
ffs () { /usr/bin/find . -name "$@"'*' ; } # ffs: Find file whose name starts with a given string | |
ffe () { /usr/bin/find . -name '*'"$@" ; } # ffe: Find file whose name ends with a given string | |
alias show_node_processes='ps -W | grep node'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment