X-Git-Url: https://git.donarmstrong.com/?p=home-base.git;a=blobdiff_plain;f=.bashrc;h=6222be40d9857afeb3b1d9547ac5ec7ff277568e;hp=a9fee9e1c1a38d50c7d6255d5bb79305217e6853;hb=9d3bfef8e863af457b10bdd91e0e58bef20dae71;hpb=c477f8359070b83d3679b03459277fe39ad201c7 diff --git a/.bashrc b/.bashrc index a9fee9e..6222be4 100644 --- a/.bashrc +++ b/.bashrc @@ -7,16 +7,26 @@ if [ "$PS1" ]; then # don't put duplicate lines in the history. See bash(1) for more options export HISTCONTROL=ignoredups - export EDITOR="/usr/bin/jed" - + if [ -x ~/bin/sane_editor ]; then + EDITOR=~/bin/sane_editor; + elif [ -x /usr/bin/jed ]; then + EDITOR="/usr/bin/jed"; + elif [ -x /usr/bin/vi ]; then + EDITOR="/usr/bin/vi"; + fi; + + if [ -n "$EDITOR" ]; then + export EDITOR; + fi; # bts debian options + export DEBEMAIL="don@debian.org" # enable color support of ls and also add handy aliases eval `dircolors -b` alias ls='ls --color=auto' alias gr='gimp-remote-2.2' - alias emc='gnuclient' + alias emc='sane_editor' # set a fancy prompt PS1='\u@\h:\w\$ ' @@ -32,9 +42,9 @@ if [ "$PS1" ]; then # enable programmable completion features (you don't need to enable # this, if it's already enabled in /etc/bash.bashrc). - #if [ -f /etc/bash_completion ]; then - # . /etc/bash_completion - #fi + if [ -f /etc/bash_completion ]; then + . /etc/bash_completion; + fi; alias aumix2='aumix -d /dev/mixer1 -I' export LANG="en_US.UTF-8"