Skip to content

Instantly share code, notes, and snippets.

@saggie
Created October 31, 2018 04:11
Show Gist options
  • Save saggie/3d6e8a43dd59963d318e2ea610581c1c to your computer and use it in GitHub Desktop.
Save saggie/3d6e8a43dd59963d318e2ea610581c1c to your computer and use it in GitHub Desktop.
Setup Ubuntu
# --- MINE ---
# Proxy
export http_proxy='http://xx.xx.xx.xx:3128'
export https_proxy=$http_proxy
export no_proxy='localhost,.foo.bar.com'
# Java
JAVA_HOME=$(readlink -f /usr/bin/javac | sed "s:/bin/javac::")
export JAVA_HOME
PATH=$PATH:$JAVA_HOME/bin
export PATH
# Git Alias
alias gitka='gitk --all &'
alias gs='git status -s'
alias bra='git branch -a'
alias gitfetch='git fetch --prune'
alias gl='git --no-pager log --oneline --graph -n20'
# Utils
alias mygrep='grep -rnw . -e $@ '
alias whereis='find . -name $@'
alias ls2='ls -d $PWD/*'
alias ex='exit'
sudo visudo
Defaults env_keep += "http_proxy https_proxy no_proxy HTTP_PROXY HTTPS_PROXY NO_PROXY"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment