export TERM="xterm-256color" export CLICOLOR="true" alias ls="ls --color" alias ll="ls --color -alh" get-git-dirty-state() { if [[ $(git status 2> /dev/null | tail -n1) =~ "nothing to commit" ]]; then echo "" else echo "*" fi } get-git-branch() { branch=$(git rev-parse --abbrev-ref HEAD 2> /dev/null) if [ ! -z "$branch" ]; then echo " [$branch]" fi } BLUE="\[\e[0;34m\]" LIGHT_GREEN="\[\e[1;32m\]" WHITE="\[\e[0;37m\]" MAGENTA="\[\e[0;35m\]" RED="\[\e[0;31m\]" LAMBDA=$'\uf09d' #export PS1="$LIGHT_GREEN[\D{%H:%M:%S}]$WHITE ${debian_chroot:+($debian_chroot)}\w ยป$WHITE " export PS1="$LIGHT_GREEN{SANDBOX} [\D{%H:%M:%S}]$WHITE ${debian_chroot:+($debian_chroot)}\w$MAGENTA\$(get-git-branch)$RED >$WHITE " # don't put duplicate lines in the history. See bash(1) for more options # ... or force ignoredups and ignorespace HISTCONTROL=ignoredups:ignorespace # append to the history file, don't overwrite it shopt -s histappend export HISTCONTROL=ignoredups:erasedups # no duplicate entries export HISTSIZE=100000 # big big history export HISTFILESIZE=100000 # big big history # Save and reload the history after each command finishes # export PROMPT_COMMAND="history -a; history -c; history -r; $PROMPT_COMMAND" # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize # Helper function for sending commands to other tmux panes function tsk { args=$@ tmux send-keys -t right "$args" C-m }