dotfiles

personal configurations for my systems and programs
git clone git@git.eonndev.com/dotfiles.git
Log | Files | Refs

.bashrc (1654B)


      1 # /etc/skel/.bashrc
      2 #
      3 # This file is sourced by all *interactive* bash shells on startup,
      4 # including some apparently interactive shells such as scp and rcp
      5 # that can't tolerate any output.  So make sure this doesn't display
      6 # anything or bad things will happen !
      7 
      8 
      9 # Test for an interactive shell.  There is no need to set anything
     10 # past this point for scp and rcp, and it's important to refrain from
     11 # outputting anything in those cases.
     12 if [[ $- != *i* ]] ; then
     13 	# Shell is non-interactive.  Be done now!
     14 	return
     15 fi
     16 
     17 if command -v tmux >/dev/null 2>&1 && ! shopt -q login_shell ; then
     18 	[ -z "${TMUX}" ] && (tmux attach || tmux) >/dev/null 2>&1
     19 fi
     20 
     21 
     22 export HOME=/home/ian
     23 export XAUTHORITY=$HOME/.Xauthority
     24 export EDITOR=/usr/bin/emacs
     25 
     26 alias scrot="scrot ~/Pictures/screenshots/%Y-%m-%d$s.png"
     27 alias n="nnn -e"
     28 alias ls="ls -lah --color=always"
     29 alias sleepmode="sudo s2ram"
     30 alias shutdown="sudo halt -p"
     31 alias reboot="sudo reboot"
     32 alias fullupgrade='sudo emerge -avuDUN --keep-going --with-bdeps=y --quiet @world'
     33 
     34 alias dot="/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME"
     35 alias dotrm="/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME rm --cached"
     36 
     37 alias orgpush="rsync -rvPz --delete $HOME/.org notes@eonndev.com:/home/notes/org/ || echo 'Push unsuccessful'"
     38 alias orgpull="rsync -rvPz --delete notes@eonndev.com:/home/notes/org/ $HOME/.org/ || echo 'Pull unsuccessful'"
     39 alias schoolpush="rsync -rvPz --delete --exclude '*.pdf' $HOME/skool/ notes@eonndev.com:/home/notes/skool/ || echo 'Push unsuccessful'"
     40 alias schoolpull="rsync -rvPz --delete notes@eonndev.com:/home/notes/skool/ $HOME/skool/ || echo 'Pull unsuccessful'"