38 lines
902 B
Bash
38 lines
902 B
Bash
test -s ~/.alias && . ~/.alias || true
|
|
PS1='\[\033[0;33m\]\w\[\] \[\033[0;32m\]me@\h\[\033[0m\] $> \[\033[0m\]'
|
|
export PATH=$PATH:~/bin:~/local/bin
|
|
|
|
function tmux_title {
|
|
printf '\033]2;%s\033\\' $@
|
|
}
|
|
tmux_title $(hostname -s)
|
|
|
|
# Git prompt
|
|
GIT_PROMPT_ONLY_IN_REPO=1
|
|
GIT_PROMPT_FETCH_REMOTE_STATUS=0
|
|
GIT_PROMPT_IGNORE_STASH=1
|
|
GIT_PROMPT_THEME=Noldorized
|
|
source ~/.bash-git-prompt/gitprompt.sh
|
|
|
|
function prompt_callback {
|
|
REPO=$(git remote -v | sed -r 's/^origin.*\/(.*)\.git.*/\1/' | head -1)
|
|
gp_set_window_title "$REPO($GIT_BRANCH)"
|
|
}
|
|
|
|
# LS_COLORS
|
|
eval $(dircolors -b $HOME/.dircolors)
|
|
|
|
# Global Options
|
|
export LS_OPTIONS=""
|
|
export LESS='-R'
|
|
export TERM=screen-256color
|
|
|
|
# Aliases
|
|
alias ls="ls --color=always --time-style=long-iso -F"
|
|
alias gs="git status"
|
|
alias gc="git commit -m"
|
|
alias gco="git checkout"
|
|
alias gl="git l"
|
|
alias ga="git add"
|
|
alias gpush="git push"
|
|
alias gpull="git pull"
|