changed how hostname is determined
This commit is contained in:
1 parent
cce1db8d9c
commit
813cbeb31c
1 file changed
+10
-7
+10
-7
@@ -1,8 +1,3 @@
|
|||||||
#function parse_git_branch {
|
|
||||||
# git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
|
|
||||||
#}
|
|
||||||
|
|
||||||
#export PS1='\u@\h:\W $(parse_git_branch)\n\$ '
|
|
||||||
export EDITOR='vi'
|
export EDITOR='vi'
|
||||||
export WORKON_HOME=$HOME/.virtualenvs
|
export WORKON_HOME=$HOME/.virtualenvs
|
||||||
export LC_CTYPE="en_US.UTF-8"
|
export LC_CTYPE="en_US.UTF-8"
|
||||||
@@ -18,8 +13,16 @@ alias gitpretty="git log --pretty=format:'%h : %Cblue%aN%Creset : %Cred%d%Creset
|
|||||||
alias ls='ls -G'
|
alias ls='ls -G'
|
||||||
alias ll='ls -lG'
|
alias ll='ls -lG'
|
||||||
|
|
||||||
if [[ -r $HOME/.`hostname -s`_bash_profile ]]; then
|
if [[ -r $HOME/.host_nickname ]]; then
|
||||||
source $HOME/.`hostname -s`_bash_profile
|
HOST_NICKNAME=`cat .host_nickname`
|
||||||
|
else
|
||||||
|
HOST_NICKNAME=`hostname -s`
|
||||||
|
fi
|
||||||
|
|
||||||
|
export PS1="\u@${HOST_NICKNAME}:\W \$ "
|
||||||
|
|
||||||
|
if [[ -r $HOME/.${HOST_NICKNAME}_bash_profile ]]; then
|
||||||
|
source $HOME/.${HOST_NICKNAME}_bash_profile
|
||||||
else
|
else
|
||||||
echo "WARNING: Can't find custom bash_profile"
|
echo "WARNING: Can't find custom bash_profile"
|
||||||
fi
|
fi
|
||||||
Reference in new issue
Block a user