export LANG="en_GB.UTF-8" # GPG # if ! type -p gpg-agent > /dev/null; then : elif test -f "$HOME/.gpg-agent-info" && kill -0 $(cut -d: -f2 "$HOME/.gpg-agent-info" 2> /dev/null ) 2> /dev/null; then . "$HOME/.gpg-agent-info" export GPG_TTY=$(tty) else eval $(gpg-agent --daemon --log-file "$HOME/.gpg-agent.log" \ --write-env-file "$HOME/.gpg-agent-info" 2> /dev/null) export GPG_TTY=$(tty) fi # ssh wrapper # if [ -s "$HOME/bin/ssh" ]; then SSH="$HOME/bin/ssh" else SSH=ssh fi for x in GIT_SSH; do eval export $x=$SSH done # debian/ubuntu development # export DEBFULLNAME="Alejandro Mery" export DEBEMAIL="amery@geeks.cl" # other apps chosen by env # export BROWSER=links export EDITOR=vim # tweak your bash # export HISTFILESIZE=50 export HISTCONTROL=ignoredups # interactive prompt if [ -n "$PS1" ]; then # support resize, please shopt -s checkwinsize # standarise $TERM case "$TERM" in nxterm) export TERM=xterm ;; screen-256color|screen|xterm|rxvt|linux) ;; *) echo "$TERM: Unknown TERM value." ;; esac # get a nicer $PS1 [ -s $HOME/.bash/prompt.in ] && . $HOME/.bash/prompt.in # aliases # alias ls='ls --color=auto' alias l='ls -avhlF' alias gdb='gdb -quiet' [ "$(type -t ll)" = alias ] && unalias ll function ll() { ls -avhlF $* | less; } fi # vi mode set -o vi # local settings for x in .bash/local.in /etc/bash_completion; do expr "$x" : / > /dev/null || x="$HOME/$x" if [ -s "$x" ]; then . "$x" fi done