Last active
December 17, 2015 11:50
-
-
Save eseceve/5605744 to your computer and use it in GitHub Desktop.
My dotfiles
This file contains 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
# git | |
alias g="git" | |
alias ga="git add" | |
alias gb="git branch" | |
alias gbn="git checkout -b" | |
alias gc="git commit -v" | |
alias gco="git checkout" | |
alias gd="git diff" | |
alias gf="git fetch" | |
alias gl="git pull" | |
alias gm="git merge --no-ff" | |
alias gp="git push" | |
alias gs="git status -sb" | |
alias gst="git stash" | |
alias gsp="git stash pop" | |
alias guc="git reset --soft HEAD^" | |
# git flow | |
alias gf="git flow" | |
alias gff="git flow feature" | |
alias gfh="git flow hotfix" | |
alias gfr="git flow release" | |
alias gfs="git flow support" | |
# others | |
alias la="ls -lah" | |
alias vi="vim" | |
alias bower="noglob bower" |
This file contains 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
[[ -s `brew --prefix`/etc/autojump.sh ]] && . `brew --prefix`/etc/autojump.sh | |
[ -s $HOME/.nvm/nvm.sh ] && . $HOME/.nvm/nvm.sh # This loads NVM | |
source ~/.aliases |
This file contains 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
# Path to your oh-my-zsh configuration. | |
ZSH=$HOME/.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="miloshadzic" | |
# dircolors | |
if [[ -f ~/.dircolors ]]; then | |
eval `dircolors -b ~/.dircolors` | |
fi | |
# Ignore duplicate entries in zsh history | |
export HISTCONTROL=erasedups | |
# Plugins | |
plugins=(autojump cd git osx sublime) | |
# custom plugins: cd | |
# ~/.oh-my-zsh/custom/plugins/cd/cd.plugin.zsh | |
source $ZSH/oh-my-zsh.sh | |
# ~/bin in PATH | |
if [[ -d ~/bin ]]; then | |
export PATH=$PATH:~/bin | |
fi | |
# keep history file between sessions | |
DIRSTACKSIZE=15 | |
HISTSIZE=10000000 | |
SAVEHIST=10000000 | |
HISTFILE=~/.zsh_history | |
# more verbose file utilities | |
alias mv="mv -vi" | |
alias cp="cp -vai" | |
alias rm="rm -v" | |
alias chmod="chmod -v" | |
alias chown="chown -v" | |
# cdargs | |
if [[ -e /usr/share/doc/cdargs/examples/cdargs-bash.sh ]]; then | |
. /usr/share/doc/cdargs/examples/cdargs-bash.sh | |
fi | |
# fabric autocomplete | |
if [[ -f ~/.zsh_fab ]]; then | |
. ~/.zsh_fab | |
fi | |
# default user (prompt) | |
DEFAULT_USER=scv | |
zstyle ':completion:*' special-dirs true | |
# default editor | |
export EDITOR=vi | |
# disable correction | |
unsetopt correct_all | |
# Customize to your needs... | |
export PATH=$PATH:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin | |
source ~/.bash_profile |
This file contains 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
function cd() { | |
# default cd | |
builtin cd $1; | |
# virtualenv activation | |
GIT_DIR=`git rev-parse --git-dir 2> /dev/null` | |
if [[ $? == 0 ]] | |
then | |
if [[ -f $GIT_DIR/../.env/bin/activate ]] | |
then | |
. $GIT_DIR/../.env/bin/activate | |
fi | |
else | |
if [[ $VIRTUAL_ENV != "" ]] | |
then | |
deactivate | |
fi | |
fi | |
# optional ls | |
ls | |
if [ -d .git ]; then | |
git status | |
fi; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment