dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 0845c436d10c51bb02801a47213d3450f572c0d7
parent c485fc4ff97c956121352df7baa00c05136a3262
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun, 24 Dec 2017 07:34:13 -0500

Bashrc: Colorize pacman; tmux aliases

Diffstat:
M.bashrc | 20+++++++++++++++-----
1 file changed, 15 insertions(+), 5 deletions(-)

diff --git a/.bashrc b/.bashrc @@ -9,7 +9,7 @@ fi export EDITOR=vim export GOPATH=$HOME/.go -# Turn on colors +# Turn on ls colors if command -v dircolors > /dev/null 2>&1 then eval $(dircolors $HOME/.dircolors) @@ -19,6 +19,12 @@ else export LSCOLORS=ExFxBxDxCxegedabagacad fi +# Colorize pacman if its it exists +if command -v pacman > /dev/null 2>&1 +then + alias pacman='pacman --color=auto' +fi + # Configure GPG and start the agent if it isn't already running if command -v gpg-connect-agent > /dev/null 2>&1 then @@ -78,10 +84,14 @@ then source /usr/share/bash_completion/bash_completion fi -# Make life easier -alias tas=tmux\ attach-session\ -t -alias tns=tmux\ new-session\ -s -alias tls=tmux\ list-sessions +# Handy Tmux aliases +if command -v tmux > /dev/null 2>&1 +then + alias tas=tmux\ attach-session\ -t + alias tns=tmux\ new-session\ -s + alias tls=tmux\ list-sessions +fi + if [[ $OSTYPE == "darwin"* ]] then alias jackd="jackd -d coreaudio > /dev/null 2>&1 &"