Last active
August 29, 2015 14:23
-
-
Save kob-to-wni/ee19ab94db419447a370 to your computer and use it in GitHub Desktop.
シェルカスタマイズ
This file contains 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
# bash profile for Debian/Ubuntu/CentOS | |
# color prompt | |
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
# alias | |
alias ll='ls -lhap --color=auto' | |
alias ls='ls -p --color=auto' | |
alias grep='grep --color=auto' | |
# auto proxy detection using WPAD | |
#p=$(wget -q -O - --no-proxy http://wpad.wni.co.jp/wpad.dat | grep PROXY | tail -n 1 | cut -d '"' -f 2 | cut -d ' ' -f 2) | |
#export http_proxy=http://$p | |
#export https_proxy=http://$p | |
#export all_proxy=http://$p | |
#unset p |
This file contains 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
# bash profile for Mac OS X | |
# color prompt | |
PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' | |
# alias | |
alias ll='ls -lhaGp' | |
alias ls='ls -Gp' | |
alias grep='grep --color=auto' | |
# auto proxy detection using WPAD | |
#p=$(curl -s --connect-timeout 1 -m 2 http://wpad.wni.co.jp/wpad.dat | grep PROXY | tail -n 1 | cut -d '"' -f 2 | cut -d ' ' -f 2) | |
#export http_proxy=http://$p | |
#export https_proxy=http://$p | |
#export all_proxy=http://$p | |
#unset p |
This file contains 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
# tcsh profile for old FreeBSD | |
# color prompt | |
set prompt='%{\033[01;32m%}%n@%m%{\033[00m%}:%{\033[01;34m%}%c%{\033[00m%}\$ ' | |
# alias | |
alias ll ls -lhaGp | |
alias ls ls -Gp | |
set autolist | |
set ignoreeof | |
# auto proxy detection using WPAD | |
#set p=`curl -s --connect-timeout 1 -m 2 http://wpad.wni.co.jp/wpad.dat | grep PROXY | tail -n 1 | cut -d '"' -f 2 | cut -d ' ' -f 2` | |
#setenv http_proxy http://$p | |
#setenv https_proxy http://$p | |
#setenv all_proxy http://$p | |
#unset p |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment