case $- in *i*) ;; *) return;; esac HISTCONTROL=ignoreboth HISTSIZE=1000 HISTFILESIZE=2000 shopt -s histappend shopt -s checkwinsize [ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)" case "$TERM" in xterm-color) color_prompt=yes;; esac if [ -n "$force_color_prompt" ]; then if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then color_prompt=yes else color_prompt= fi fi if [ "$color_prompt" = yes ]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' else PS1='[\u@\h \W]\$ ' fi unset color_prompt force_color_prompt if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi alias ll='ls -alF' alias la='ls -A' alias l='ls -CF' eval "$(hub alias -s)" if [ -f ~/.bash_aliases ]; then . ~/.bash_aliases fi if ! shopt -oq posix; then if [ -f /usr/share/bash-completion/bash_completion ]; then . /usr/share/bash-completion/bash_completion elif [ -f /etc/bash_completion ]; then . /etc/bash_completion fi fi # allow ctrl+S in vim to save files, ie pass the command to vim when vim is open. export EDITOR="nvim" alias vim="nvim" dot_sync() { current_branch=$(git branch | grep '\*.*' | cut -d '*' -f 2 | tr -d ' ') if [ -z "$1" ]; then 1=$current_branch fi for branch in $(git branch | grep '^[^*].*$'); do git ch $branch git cherry-pick $1 || { echo 'Problems.. manually cherry-pick'; return 0 } done git ch $current_branch } rmorig() { if [ "$1" = "-f" ]; then find . -name "*.orig" -print -delete else find . -name "*.orig" -print fi } export PAGER=less export DOTFILES=$HOME/Documents/dotfiles export GOPATH=$HOME/Documents/go export PATH=$DOTFILES/bin:$PATH export PATH=$PATH:$HOME/.rvm/bin export PATH=$PATH:/opt/android-sdk/tools:/opt/android-sdk/platform-tools export PATH=$PATH:$GOPATH/bin export PATH=$PATH:$HOME/.cargo/bin export RUST_SRC_PATH=$(rustc --print sysroot)/lib/rustlib/src/rust/src/ [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" if [ -x /usr/bin/ssh-agent -a -z "$SSH_AUTH_SOCK" ]; then eval "$(keychain --eval -Q -q --agents ssh `find $HOME/.ssh/* ! -name '*.pub' ! -name 'config' ! -name 'known_hosts'`)" fi alias yaourt=pikaur alias pacaur=pikaur alias ack=ag # added by travis gem [ -f /home/drew/.travis/travis.sh ] && source /home/drew/.travis/travis.sh export DOTNET_CLI_TELEMETRY_OPTOUT=1