From 9c62e51afcba86b39c35273e23c1ab5ef899e4c2 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sun, 8 Sep 2019 12:19:56 +0200 Subject: [PATCH 1/7] Set ag path color to blue on white This is better readable than green on whatever. --- .zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index a86ba07..4b56f37 100644 --- a/.zshrc +++ b/.zshrc @@ -30,7 +30,7 @@ fi alias darkbg='xtermcontrol --bg "#000" --fg "#FFF"; export BG=dark' alias lightbg='xtermcontrol --bg "#EEE" --fg "#000" --highlight="#0FF"; export BG=light' alias defaultbg='. ~/.zxtermcolors' -alias ag='ag --color-path 32' +alias ag='ag --color-path "34;47"' namedir(){ eval "$1=~+" From 4e4abd20881eedb5335b043b790a01d0e3ebe1c5 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sat, 28 Sep 2019 10:25:13 +0200 Subject: [PATCH 2/7] Set GIT_AUTHOR_* (only) if not set --- .zshenv | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/.zshenv b/.zshenv index e5420a3..651fa8e 100644 --- a/.zshenv +++ b/.zshenv @@ -299,7 +299,24 @@ esac case "$FQDN" in *.wsr.ac.at) - export GIT_AUTHOR_EMAIL="$LOGNAME@wsr.ac.at" + if [ -z "$GIT_AUTHOR_EMAIL" ] + then + export GIT_AUTHOR_EMAIL="$LOGNAME@wsr.ac.at" + fi + if [ -z "$GIT_AUTHOR_NAME" ] + then + export GIT_AUTHOR_NAME="Peter J. Holzer" + fi + ;; + *.hjp.at) + if [ -z "$GIT_AUTHOR_EMAIL" ] + then + export GIT_AUTHOR_EMAIL="$LOGNAME@hjp.at" + fi + if [ -z "$GIT_AUTHOR_NAME" ] + then + export GIT_AUTHOR_NAME="Peter J. Holzer" + fi ;; esac From 814044968d5898c287b4af1b1947c72342364af7 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Sat, 28 Sep 2019 11:31:15 +0200 Subject: [PATCH 3/7] Remove perl_fold_blocks It's really slow --- .vimrc | 1 - 1 file changed, 1 deletion(-) diff --git a/.vimrc b/.vimrc index 098a304..a4bdc73 100644 --- a/.vimrc +++ b/.vimrc @@ -37,7 +37,6 @@ map :cp map :cn map!  >I<yypa/O autocmd FileType perl let perl_fold=1 -autocmd FileType perl let perl_fold_blocks=1 autocmd FileType perl syntax on autocmd FileType go set sw=8 From 6cefd7e45888a06e32b5c55beaa0bfa08f181b0f Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Thu, 10 Oct 2019 09:58:55 +0200 Subject: [PATCH 4/7] Remove obsolete comment --- .zshenv | 2 -- 1 file changed, 2 deletions(-) diff --git a/.zshenv b/.zshenv index 651fa8e..7c57377 100644 --- a/.zshenv +++ b/.zshenv @@ -54,8 +54,6 @@ then PATH=`$preppath -c /usr/bin/X11:/usr/games:/usr/contrib/bin` PATH=`$preppath -c /bin:/usr/bin` - # Debian's open/libre office is in /usr/bin, so we need to prepend - # the current version before it: PATH=`$preppath -c /usr/sbin:/sbin` PATH=`$preppath -c /usr/local/sbin:/usr/local/bin` `$preppath -c -e /usr/local/node-v8.9.4-linux-x86/bin` From c106c82fb8c74f00cb78752afd34cb1bf7067a64 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Thu, 10 Oct 2019 10:10:43 +0200 Subject: [PATCH 5/7] Add local go bin directory to path --- .zshenv | 1 + 1 file changed, 1 insertion(+) diff --git a/.zshenv b/.zshenv index 7c57377..606839f 100644 --- a/.zshenv +++ b/.zshenv @@ -58,6 +58,7 @@ then PATH=`$preppath -c /usr/local/sbin:/usr/local/bin` `$preppath -c -e /usr/local/node-v8.9.4-linux-x86/bin` `$preppath -c -e -r /usr/lib/go-1.*/bin` + `$preppath -c -e -r $HOME/go/bin` PATH=`$preppath -c $HOME/scripts` PATH=`$preppath -c $HOME/bin/hosts:$HOME/bin` From 411686c795385ff005711c1979183665f7799506 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Thu, 10 Oct 2019 17:00:48 +0200 Subject: [PATCH 6/7] Define timestamp format for Oracle --- .zshenv | 1 + 1 file changed, 1 insertion(+) diff --git a/.zshenv b/.zshenv index 606839f..16dd836 100644 --- a/.zshenv +++ b/.zshenv @@ -133,6 +133,7 @@ case "$LANG" in esac export NLS_DATE_FORMAT='YYYY-MM-DD HH24:MI:SS' +export NLS_TIMESTAMP_FORMAT='YYYY-MM-DD HH24:MI:SS.FF' if [ -x /usr/bin/less ] From 9a1b52eee240fe513aa6185aa0b0a0446dc90aa0 Mon Sep 17 00:00:00 2001 From: "Peter J. Holzer" Date: Fri, 27 Dec 2019 20:08:53 +0100 Subject: [PATCH 7/7] Assume xterm has 256 colors --- .znewterm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.znewterm b/.znewterm index 1d30148..f214735 100644 --- a/.znewterm +++ b/.znewterm @@ -28,6 +28,18 @@ then TERM=xterm fi +if [[ $TERM == xterm ]] +then + for t in xterm-256color xterm+256color + do + if [[ -f /usr/share/terminfo/x/$t ]] + then + TERM=$t + break + fi + done +fi + case "$TERM" in xterm*|screen) # indicated exit status by smiley (suggested by Stig Sandbeck Mathisen)