Last active
August 29, 2015 14:14
-
-
Save anjianshi/cf7d232d718e53bdc357 to your computer and use it in GitHub Desktop.
Ubuntu 14.10 Xterm config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 把这个文件放到用户文件夹下 | |
# 不加这个文件的话, 登录 ubuntu 时 .Xresources 的内容不会被自动执行 | |
# 具体表现为, /etc/X11/Xsession.d/30x11-common_xresources 这个脚本取到的 USRRESOURCES 的值为空 | |
# 原因不明 | |
export USRRESOURCES=/home/an/.Xresources |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
! 把这个文件放到用户文件夹下 | |
xterm*faceName: Source Code Pro:style=Regular | |
! support chinese | |
xterm*faceNameDoublesize: Droid Sans Fallback:style=Regular | |
xterm*faceSize: 11 | |
xterm*vt100.geometry: 80x23 | |
xterm*loginshell: true | |
! support 256color | |
xterm*termName: xterm-256color | |
! set Ctrl + V for paste http://forum.ubuntu.org.cn/viewtopic.php?t=143221 | |
XTerm*VT100.Translations: #override Ctrl <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n Ctrl <KeyPress> P: print() \n |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
cd ~/ | |
# update dircolors | |
git clone https://github.com/seebi/dircolors-solarized | |
cp dircolors-solarized/dircolors.256dark .dircolors | |
eval "`dircolors -b .dircolors`" | |
# update xterm colors | |
git clone git://github.com/altercation/solarized.git | |
mkdir ~/.Xresources.d | |
# 给每个以 * 开头的设置项加上 xterm 前缀,不这样做的话,有些设置会因为被系统级设置(/etc/X11/app-defaults/UXTerm-color)覆盖而不生效 | |
# 而另一些设置又会影响其他程序(如 IDLE),导致它们的界面颜色不正常 | |
sed "s/^\*/xterm*/" solarized/xresources/solarized >> ~/.Xresources.d/color_solarized | |
echo '# include ".Xresources.d/color_solarized"' >> ~/.Xresources | |
xrdb -merge ~/.Xresources | |
# 现在启动 Xterm,应该就是配置完成的状态了 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment