+grml-etc-core (0.19.7) grml-testing; urgency=medium
+
+ [ Michael Prokop ]
+ * [ae34c42] etc/skel/.zshrc: set file encoding to UTF8.
+ Thanks to flobee for the bug report
+
+ [ Bernhard Tittelbach ]
+ * [326ca58] zshrc: bugfix for _complete_screen_display when using tmux
+
+ -- Michael Prokop <mika@grml.org> Fri, 02 Feb 2024 12:27:36 +0100
+
+grml-etc-core (0.19.6) grml-testing; urgency=medium
+
+ [ Michael Prokop ]
+ * [74a8efd] etc/skel/.zshrc: suggest J as global alias for jq usage.
+ Thanks to Christopher Bock
+ * [393fbcb] Bump Standards-Version to 4.6.2
+
+ [ Christopher Bock ]
+ * [b973152] zshrc: weather: fixed outdated url and test -d
+
+ -- Michael Prokop <mika@grml.org> Fri, 30 Jun 2023 12:55:29 +0200
+
+grml-etc-core (0.19.5) grml-testing; urgency=medium
+
+ [ Darshaka Pathirana ]
+ * [a4aa146] tmux.conf: detect running as tmate and disable non-supported
+ features
+
+ -- Michael Prokop <mika@grml.org> Fri, 25 Nov 2022 17:11:57 +0100
+
+grml-etc-core (0.19.4) grml-testing; urgency=medium
+
+ [ Hanabishi ]
+ * [e27d360] Fix a typo in `zshrc`
+
+ [ Michael Prokop ]
+ * [220d6ff] zshrc: refactor and convert host completion one-liner into
+ multi-line
+ * [f3f1387] zshrc: fix grmlcomp conditionals, fixup for 220d6ffa
+ * [0895266] iwconfig zsh completion: replace egrep usage with grep -E
+ * [5065224] zshrc: run tlog alias with --follow=name
+
+ -- Michael Prokop <mika@grml.org> Mon, 10 Oct 2022 19:00:20 +0200
+
+grml-etc-core (0.19.3) grml-testing; urgency=medium
+
+ [ Darshaka Pathirana ]
+ * [2060f8d] tmux.conf: source user-specific local conf file
+ ~/.tmux.conf.local
+ * [591479d] tmux.conf: Add bind-key J to join marked pane to active
+ window
+
+ -- Michael Prokop <mika@grml.org> Wed, 17 Aug 2022 13:22:38 +0200
+
+grml-etc-core (0.19.2) grml-testing; urgency=medium
+
+ [ Frank Terbeck ]
+ * [4a3593b] doc: Error out properly when a generator fails
+
+ -- Michael Prokop <mika@grml.org> Mon, 21 Mar 2022 16:22:05 +0100
+
grml-etc-core (0.19.1) grml-testing; urgency=medium
[ Bhoppi Chaw ]
Build-Depends:
debhelper-compat (= 12),
txt2tags,
-Standards-Version: 4.5.0
+Standards-Version: 4.6.2
Homepage: https://git.grml.org/?p=grml-etc-core.git
Vcs-git: git://git.grml.org/grml-etc-core.git
Vcs-Browser: https://git.grml.org/?p=grml-etc-core.git
Sets mode from ISO 2022 to UTF-8 (See:
http://www.cl.cam.ac.uk/~mgk25/unicode.html#term).
-: **tlog** (//tail -f /var/log/syslog//)
+: **tlog** (//tail --follow=name /var/log/syslog//)
Prints syslog continuously (See tail(1)).
: **up** (//aptitude update ; aptitude safe-upgrade//)
#alias -g G='|grep'
#alias -g H='|head'
#alias -g Hl=' --help |& less -r'
+#alias -g J='|jq'
#alias -g K='|keep'
#alias -g L='|less'
#alias -g LL='|& less -r'
#getanames () { perl -ne 'while ( m/a name="([^"]*)"/gc ) { print $1, "\n"; }' $* }
#getforms () { perl -ne 'while ( m:(\</?(input|form|select|option).*?\>):gic ) { print $1, "\n"; }' $* }
#getstrings () { perl -ne 'while ( m/"(.*?)"/gc ) { print $1, "\n"; }' $*}
-#getanchors () { perl -ne 'while ( m/«([^«»\n]+)»/gc ) { print $1, "\n"; }' $* }
+#getanchors () { perl -ne 'while ( m/«([^«»\n]+)»/gc ) { print $1, "\n"; }' $* }
#showINC () { perl -e 'for (@INC) { printf "%d %s\n", $i++, $_ }' }
#vimpm () { vim `perldoc -l $1 | sed -e 's/pod$/pm/'` }
#vimhelp () { vim -c "help $1" -c on -c "au! VimEnter *" }
bind-key B if-shell "! tmux has-session -t bg" "new-session -d -s bg" \; move-window -t bg
### Reload Config
-bind-key R source-file ~/.tmux.conf \; display-message "~/.tmux.conf reloaded"
+if-shell "! (env | grep -q TMUX=/tmp/tmate)" \
+ "bind-key R source-file ~/.tmux.conf \\; source-file -q ~/.tmux.conf.local \\; display-message '~/.tmux.conf[.local] reloaded'"
###rebind keys
bind-key h next-layout
set-window-option -g window-status-style fg=blue,bg=black
set-window-option -g window-status-current-style bold
+
+### source user-specific local configuration file
+if-shell "! (env | grep -q TMUX=/tmp/tmate)" \
+ "source-file -q ~/.tmux.conf.local"
fi
# host completion
+ _etc_hosts=()
+ _ssh_config_hosts=()
+ _ssh_hosts=()
if is42 ; then
- [[ -r ~/.ssh/config ]] && _ssh_config_hosts=(${${(s: :)${(ps:\t:)${${(@M)${(f)"$(<$HOME/.ssh/config)"}:#Host *}#Host }}}:#*[*?]*}) || _ssh_config_hosts=()
- [[ -r ~/.ssh/known_hosts ]] && _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*}) || _ssh_hosts=()
- [[ -r /etc/hosts ]] && [[ "$NOETCHOSTS" -eq 0 ]] && : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(grep -v '^0\.0\.0.\0\|^127\.0\.0\.1\|^::1 ' /etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}} || _etc_hosts=()
- else
- _ssh_config_hosts=()
- _ssh_hosts=()
- _etc_hosts=()
+ if [[ -r ~/.ssh/config ]] ; then
+ _ssh_config_hosts=(${${(s: :)${(ps:\t:)${${(@M)${(f)"$(<$HOME/.ssh/config)"}:#Host *}#Host }}}:#*[*?]*})
+ fi
+
+ if [[ -r ~/.ssh/known_hosts ]] ; then
+ _ssh_hosts=(${${${${(f)"$(<$HOME/.ssh/known_hosts)"}:#[\|]*}%%\ *}%%,*})
+ fi
+
+ if [[ -r /etc/hosts ]] && [[ "$NOETCHOSTS" -eq 0 ]] ; then
+ : ${(A)_etc_hosts:=${(s: :)${(ps:\t:)${${(f)~~"$(grep -v '^0\.0\.0\.0\|^127\.0\.0\.1\|^::1 ' /etc/hosts)"}%%\#*}##[:blank:]#[^[:blank:]]#}}}
+ fi
fi
local localname
## complete word from currently visible Screen or Tmux buffer.
if check_com -c screen || check_com -c tmux; then
function _complete_screen_display () {
- [[ "$TERM" != "screen" ]] && return 1
local TMPFILE=$(mktemp)
local -U -a _screen_display_wordlist
#works, but crashes tmux below version 1.4
#luckily tmux -V option to ask for version, was also added in 1.4
tmux -V &>/dev/null || return
- tmux -q capture-pane \; save-buffer -b 0 $TMPFILE \; delete-buffer -b 0
+ tmux -q capture-pane -b 0 \; save-buffer -b 0 $TMPFILE \; delete-buffer -b 0
else
+ [[ "$TERM" != "screen" ]] && return
screen -X hardcopy $TMPFILE
# screen sucks, it dumps in latin1, apparently always. so recode it
# to system charset
#a1# Take a look at the syslog: \kbd{\$PAGER /var/log/syslog || journalctl}
salias llog="$PAGER /var/log/syslog" # take a look at the syslog
#a1# Take a look at the syslog: \kbd{tail -f /var/log/syslog || journalctl}
- salias tlog="tail -f /var/log/syslog" # follow the syslog
+ salias tlog="tail --follow=name /var/log/syslog" # follow the syslog
elif check_com -c journalctl ; then
salias llog="journalctl"
salias tlog="journalctl -f"
_wlan_interfaces() {
local intf
- intf=$(iwconfig |& egrep 'IEEE 802.11[abg]' | cut -d' ' -f1 | tr ' ' \\n )
- # intf=$( fgrep ': ' < /proc/net/wireless | cut -d: -f1 | tr \\n ' ' | tr -s " \t" )
+ intf=$(iwconfig |& grep -E 'IEEE 802.11[abg]' | cut -d' ' -f1 | tr ' ' \\n )
+ # intf=$( grep -F ': ' < /proc/net/wireless | cut -d: -f1 | tr \\n ' ' | tr -s " \t" )
_wanted interfaces expl 'wireless network interface' \
compadd ${intf}
}
local DIR="${HOME}/.weather"
local LOG="${DIR}/log"
-if [[ -d ${DIR} ]]; then
+if ! [[ -d ${DIR} ]]; then
print -n "Creating ${DIR}: "
mkdir ${DIR}
print 'done'
print
cd ${DIR} && \
wget -T 10 --no-verbose --output-file=$LOG --timestamping \
- http://weather.noaa.gov/pub/data/observations/metar/decoded/$PLACE.TXT
+ https://tgftp.nws.noaa.gov/data/observations/metar/decoded/$PLACE.TXT
if [[ $? -eq 0 ]]; then
if [[ -n "$VERBOSE" ]] ; then