sudo visudo
Defaults env_keep += "http_proxy https_proxy no_proxy HTTP_PROXY HTTPS_PROXY NO_PROXY"
Created
October 31, 2018 04:11
-
-
Save saggie/3d6e8a43dd59963d318e2ea610581c1c to your computer and use it in GitHub Desktop.
Setup Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# --- 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' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment