Compare commits
7 Commits
ce78264b38
...
6951e5b579
Author | SHA1 | Date |
---|---|---|
Peter J. Holzer | 6951e5b579 | |
Peter J. Holzer | 0fdf383857 | |
Peter J. Holzer | e571e6068d | |
Peter J. Holzer | 4717013939 | |
Peter J. Holzer | 43ba5d2b5c | |
Peter J. Holzer | be8eb03364 | |
Peter J. Holzer | 9a1b52eee2 |
17
.znewterm
17
.znewterm
|
@ -23,11 +23,26 @@ then
|
|||
stty erase
|
||||
fi
|
||||
|
||||
if [[ $TERM == xterm-256color && ! -f /usr/share/terminfo/x/xterm-256color ]]
|
||||
if [[ $TERM == xterm-256color && ! -f /usr/share/terminfo/x/xterm-256color && ! -f /lib/terminfo/x/xterm-256color ]]
|
||||
then
|
||||
TERM=xterm
|
||||
fi
|
||||
|
||||
if [[ $TERM == xterm ]]
|
||||
then
|
||||
for t in xterm-256color
|
||||
do
|
||||
for dir in /usr/share/terminfo/x /lib/terminfo/x
|
||||
do
|
||||
if [[ -f $dir/$t ]]
|
||||
then
|
||||
TERM=$t
|
||||
break 2
|
||||
fi
|
||||
done
|
||||
done
|
||||
fi
|
||||
|
||||
case "$TERM" in
|
||||
xterm*|screen)
|
||||
# indicated exit status by smiley (suggested by Stig Sandbeck Mathisen)
|
||||
|
|
2
.zshrc
2
.zshrc
|
@ -27,7 +27,7 @@ if ack=`whence ack-grep`
|
|||
then
|
||||
alias ack=$ack
|
||||
fi
|
||||
alias darkbg='xtermcontrol --bg "#000" --fg "#FFF"; export BG=dark'
|
||||
alias darkbg='xtermcontrol --bg "#000" --fg "#FFF --highlight="#00F""; export BG=dark'
|
||||
alias lightbg='xtermcontrol --bg "#EEE" --fg "#000" --highlight="#0FF"; export BG=light'
|
||||
alias defaultbg='. ~/.zxtermcolors'
|
||||
alias ag='ag --color-path "34;47"'
|
||||
|
|
Loading…
Reference in New Issue