Skip to content

Instantly share code, notes, and snippets.

@jobscale
Last active May 25, 2018 01:14
Show Gist options
  • Select an option

  • Save jobscale/60f3ac0a0612a918800b5bf054fb701c to your computer and use it in GitHub Desktop.

Select an option

Save jobscale/60f3ac0a0612a918800b5bf054fb701c to your computer and use it in GitHub Desktop.
if [ "$(which sudo 2>/dev/null)" != "" ]
then
alias sudo='sudo -E'
else
alias sudo=''
fi
alias grep='grep --color=auto'
alias ul=less_with_unbuffer
alias netstat='netstat -anptu'
alias rsync='rsync -tlrhv --delete'
if [ -f ~/.bash_scripts ]; then
. ~/.bash_scripts
fi
if [ "" = "${DISPLAY}" ]; then
export DISPLAY='localhost:0.0'
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment