Compare commits

...

8 Commits

Author SHA1 Message Date
Peter J. Holzer e21bb78722 Merge branch 'master' into wsr_shared 2020-04-16 12:14:36 +02:00
Peter J. Holzer 1fb9fc5a6c Set foreground color to black
Just setting the background color may result in unreadable combinations.
A black foreground should always work well with a light background.
2020-04-16 12:12:25 +02:00
Peter J. Holzer cca4072c37 Fix handling of FPATH 2020-03-30 16:42:05 +02:00
Peter J. Holzer ab06f7efbe Don't wrap crontab files 2020-03-27 10:53:34 +01:00
Peter J. Holzer 9a3b1f0b9b Handle .ts and .html files
Recognize .ts files as javascript (its really typescript but I don't
have syntax highlighting for that). Set sw for javascript and html.
2020-03-26 14:55:30 +01:00
Peter J. Holzer c20b8fce3c Make lightbg lighter
The three-digit color codes in xtermcontrol work differently than in
CSS. #EEE is equivalent to #E0E0E0, not #EEEEEE.
2020-03-26 12:09:42 +01:00
Peter J. Holzer 74b669b47a Search for go in /usr/local 2020-03-23 12:30:28 +01:00
Peter J. Holzer 34b9bd06d3 Fix darkbg 2020-03-18 09:16:24 +01:00
4 changed files with 20 additions and 3 deletions

7
.vimrc
View File

@ -41,3 +41,10 @@ autocmd FileType perl syntax on
autocmd FileType go set sw=8
autocmd FileType go set tw=79
autocmd FileType go set noexpandtab
autocmd BufRead,BufNewFile *.ts set filetype=javascript
autocmd FileType javascript set sw=2
autocmd FileType html set sw=2
autocmd FileType crontab set tw=0

View File

@ -66,7 +66,7 @@ then
then
. ~/.zxtermcolors
else
perl -e 'printf(qq{if whence xtermcontrol >/dev/null\nthen\nxtermcontrol --bg "#%02X%02X%02X"\nexport BG=light\nfi\n}, map { rand(128)+128 } qw(1 1 1))' > ~/.zxtermcolors
perl -e 'printf(qq{if whence xtermcontrol >/dev/null\nthen\nxtermcontrol --bg "#%02X%02X%02X" --fg "#000000"\nexport BG=light\nfi\n}, map { rand(128)+128 } qw(1 1 1))' > ~/.zxtermcolors
fi
fi

View File

@ -59,6 +59,7 @@ then
`$preppath -c -e /usr/local/node-v8.9.4-linux-x86/bin`
`$preppath -c -e /usr/local/node-v8.9.4-linux-x64/bin`
`$preppath -c -e -r /usr/lib/go-1.*/bin`
`$preppath -c -e -r /usr/local/go-1.*/bin`
`$preppath -c -e -r $HOME/go/bin`
PATH=`$preppath -c $HOME/scripts`
PATH=`$preppath -c $HOME/bin/hosts:$HOME/bin`

13
.zshrc
View File

@ -27,8 +27,8 @@ if ack=`whence ack-grep`
then
alias ack=$ack
fi
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 darkbg='xtermcontrol --bg "#000" --fg "#FFF" --highlight="#00F"; export BG=dark'
alias lightbg='xtermcontrol --bg "#F0F0F0" --fg "#000" --highlight="#0FF"; export BG=light'
alias defaultbg='. ~/.zxtermcolors'
alias ag='ag --color-path "34;47"'
@ -121,7 +121,16 @@ fi
# don't want to recreate that mess manually.
if [ -d ~/bin/func ]
then
export FPATH
FPATH=`preppath -v FPATH ~/bin/func`
# We also have to mark all functions explicitely as undefined,
# or zsh won't look for them. (Is this new? I thought that zsh would
# automatically search for unknown commands in FPATH, too. Maybe
# there's an option for that.)
for f in ~/bin/func/*
do
typeset -fu $(basename $f)
done
fi
# for new style completion: