소스 검색

add alias inbash and bashrc seems to work with zsh

pull/1/head
10sr 11 년 전
부모
커밋
aa362ac42a
1개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. +5
    -4
      bashrc

+ 5
- 4
bashrc 파일 보기

@@ -31,6 +31,10 @@ null ls --version && alias with_coreutils=true

( ismsys || iscygwin ) && alias iswindows=true

alias inbash=false

test -n "$BASH_VERSION" && alias inbash=true

#################################

if echo $PATH | grep "$HOME" >/dev/null 2>&1
@@ -80,8 +84,6 @@ mkdir -p "$TMP"
}

if iswindows; then
# export PS1=" \[\e[32m\]\u@\H \[\e[33m\]\w\[\e[0m\] \d \t\n\s \# \j \$ "
# export PS1=" [\[\e[33m\]\w\[\e[0m\]]\n\[\e[32m\]\u@\H\[\e[0m\] \d \t \s.\v\nhist:\# jobs:\j \$ "
export USER=$USERNAME
fi

@@ -253,7 +255,7 @@ g(){
git "$@"
fi
}
if null type _git
if null type _git && inbash
then
# enable programmable completion for g
complete -o bashdefault -o default -o nospace -F _git g 2>/dev/null \
@@ -807,4 +809,3 @@ __my_set_title(){
}
PROMPT_COMMAND="__my_set_title \${USER}@\${HOSTNAME}\:\${PWD};
__my_set_screen_title \$(basename \"\$PWD\")/"


불러오는 중...
취소
저장