我用它在我的bashrc
中加入了下面幾行,但是我不能再使用bash作爲登錄shell。 我的登錄shell現在是ksh。當我把它放在我的.profile文件中並且源代碼時,我從ksh得到一個錯誤。 我應該如何修改它以使其工作?你能幫我把這個翻譯成ksh
if [ "x$DISPLAY" == "x" ]
then
function tvim(){ tmux new-session "vim [email protected]" ; }
else
function tvim(){ tmux -2 new-session "TERM=screen-256color vim [email protected]" ; }
fi
的.profile
loginshell=1
SH_LEVEL=0
export ENV=$HOME/.envfile
export PROFILE_SETTINGS_FILE="$PROFILE_SETTINGS_FILE:~/.profile"
.envfile
:很多ENV變量的定義我不能顯示和bash在最後一行
.bashrc
if [ "x$DISPLAY" == "x" ]
then
function tvim(){ tmux new-session "vim [email protected]" ; }
else
function tvim(){ tmux -2 new-session "TERM=screen-256color vim [email protected]" ; }
fi
我沒有.kshrc
*我從ksh得到一個錯誤*你打算告訴我們錯誤是什麼,或者我們必須猜測?順便說一句,你的函數語法是可疑的。 – cdarke