自己的notebook(现在已经是实验田了), 当然要是自己就DIY的世界了.
现在想要的功能:
* 每个将要使用的console或者terminal都要有screen的存在, 并且要自动运行.
使用如下shell脚本(.bash_profile):
tty_name=$(tty|cut -c 6-|tr -d "/")
# each tty, everyone can longi one time only!
# don't need environment
if [ ${tty_name::3} = "tty" ];then
screen
# if login from terminal
elif [ ${TERM::6} != "screen" ];then
screen -S $tty_name
fi
要使urxvt成为login shell, 需要增加如下配置(.Xdefaults)
URxvt.loginShell:True
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.