Skip to content

Instantly share code, notes, and snippets.

@hidsh
Created November 29, 2011 08:33
Show Gist options
  • Save hidsh/1404018 to your computer and use it in GitHub Desktop.
Save hidsh/1404018 to your computer and use it in GitHub Desktop.
my simple ~/.profile
!/bin/sh
###
### variables
###
export LANG=C
#export LANG=ja_JP.UTF-8
export PC='host name'
###
### aliases
###
#alias emacs="emacs -display $REMOTEHOST:0.0 &"
alias kterm="kterm -display $REMOTEHOST:0.0 -sb &"
alias diff="diff -u0 -w"
###
### functions
###
xx()
{
xdisp="--display $REMOTEHOST:0.0"
s=""
for arg in $*; do
s=$s" "$arg
done
LANG=C
$s $xdisp&
}
###
### proxy
###
export http_proxy=http://user:[email protected]:8080
export ftp_proxy=http://user:[email protected]:8080
###
### other customize
###
# disable C-s (stop)
stty stop undef
export LESS=-N
# ant proxy
export ANT_OPTS="-Dhttp.proxyHost=proxy.where.jp \
-Dhttp.proxyPort=8080 \
-Dhttp.proxyUser=user -Dhttp.proxyPassword=pass"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment