# ============================== Prompt git_branch() { git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/|\1/' } HOST="\[\033[0;93m\]\h\[\033[m\]" GIT="\[\033[1;91m\]\$(git_branch)\[\033[m\]" ICON="\[\033[1;92m\]λ\[\033[m\]" DIR="\[\033[1;94m\]\w\[\033[m\]" export PS1="${HOST} ${DIR}${GIT} ${ICON} " # ============================== Aliases alias emacsnw="TERM=xterm-direct emacs -nw" alias c='clear' alias l='ls -lh' #size,show type,human readable alias la='ls -lah' #long list,show almost all,show type,human readable alias ll='ls -l' #long list alias rm='rm -i' # ask before removal alias cp='cp -i' # ask before removal alias mv='mv -i' # ask before removal # ============================== SSH-Agent agent() { if ! [ -S /tmp/mthomas-agent.sock ]; then echo "Starting ssh-agent" ssh-agent -a /tmp/mthomas-agent.sock ssh-add else echo "Agent already running" fi } alias ssha=agent # ============================== vi-Mode set -o vi # ============================== Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # ============================== Source local definitions if [ -f ~/.bashrc_local ]; then source ~/.bashrc_local fi