Commit 339fef9a by PotatoGim

bashrc 일부 내용 수정

parent b4e9c19b
......@@ -8,7 +8,6 @@
# Date : can't remember that, but maybe that around July 2013.
#
############################################################################
function mkctags
{
rm -f tags cscope.files cscope.out
......@@ -102,21 +101,17 @@ function pg_hgpush
done
}
############################################################################
#
# Description : Rename VM on VMware ESXi Server
#
# Authors : Gim Ji-Hyeon (potatogim@gluesys.com)
#
# Written at : Tue Aug 27 08:09:28 UTC 2013
#
# Parameters :
# $1 : from
# $2 : to
############################################################################
function pg_renamevm
{
from_dir="$1"
to_dir="$2"
......@@ -145,8 +140,11 @@ function pg_renamevm
}
############################################################################
# Environment Variables
############################################################################
export HISTSIZE=10240000
#export HISTFILESIZE=10240000
export HISTTIMEFORMAT="%Y-%m-%d [%T] "
export HISTCONTROL=ignoreboth:erasedups
......@@ -160,7 +158,7 @@ export _JAVA_AWT_WM_NONREPARENTING=1
# mtpfs를 사용해서 안드로이드 기기를 마운트
alias android-connect="mtpfs -o allow_other /media/android"
alias android-disconnect="fusermount -u /media/android"
alias android-disconnect="sudo umount -u /media/android"
alias l.="ls -d .* --color=auto"
alias ll="ls -l --color=auto"
......@@ -169,6 +167,11 @@ alias rm="rm -i"
alias vi="vim"
alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde'
if [ "x$TMUX" != "x" ]; then
function cd() { builtin cd "$@" && tmux rename-window `basename $PWD`; }
tmux rename-window `basename $PWD`;
fi
case ${TERM} in
xterm*|rxvt*|Eterm|aterm|kterm|gnome*)
PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment