config/shell: slight adjustments
This commit is contained in:
parent
64936470f2
commit
751f421d59
|
@ -102,7 +102,7 @@ pathadd() {
|
||||||
|
|
||||||
# ZSH completion and stuff {{{1
|
# ZSH completion and stuff {{{1
|
||||||
alias rs="reset && source $HOME/.zshenv && exec $SHELL"
|
alias rs="reset && source $HOME/.zshenv && exec $SHELL"
|
||||||
alias hist='print -z $(history | grep -v "killm " | tac | fzf --tiebreak=index --bind='"'"'del:execute(sed "\;$(echo {4..})$d" -i.bak $HISTFILE)'"'"' | sed "s|^ \+||" | cut -d" " -f5-)'
|
alias hist='print -z $(history | grep -v -e "killm " -e "netkeeper " | tac | fzf --tiebreak=index --bind='"'"'del:execute(sed "\;$(echo {4..})$d" -i.bak $HISTFILE)'"'"' | sed "s|^ \+||" | cut -d" " -f5-)'
|
||||||
|
|
||||||
alias es='edit-shell'
|
alias es='edit-shell'
|
||||||
alias ec='edit-config'
|
alias ec='edit-config'
|
||||||
|
|
|
@ -40,7 +40,7 @@ case "$cmd" in
|
||||||
showinfo zsh $(test "$last" != zsh && echo "$last") ||
|
showinfo zsh $(test "$last" != zsh && echo "$last") ||
|
||||||
LESS="$LESS +/^ *$last *\\[" man zshall;;
|
LESS="$LESS +/^ *$last *\\[" man zshall;;
|
||||||
(*) showinfo "$@" || man "$@" || return=$?
|
(*) showinfo "$@" || man "$@" || return=$?
|
||||||
if test "$return" -gt 0 && which "$cmd" >/dev/null
|
if test "${return:-0}" -gt 0 && which "$cmd" >/dev/null
|
||||||
then { unbuffer "$@" --help || { test $? == 1 && "$@" -help; } || { test $? == 1 && "$@" -h; }; } 2>&1 | $paginate
|
then { unbuffer "$@" --help || { test $? == 1 && "$@" -help; } || { test $? == 1 && "$@" -h; }; } 2>&1 | $paginate
|
||||||
return=$?
|
return=$?
|
||||||
fi;;
|
fi;;
|
||||||
|
|
|
@ -7,6 +7,6 @@ if test -e "$JOURNAL"; then
|
||||||
done
|
done
|
||||||
jrnl intentions "$intention"
|
jrnl intentions "$intention"
|
||||||
sudo nft flush chain inet filter outall
|
sudo nft flush chain inet filter outall
|
||||||
sudo nft add rule inet filter outall meta hour "$(date +%H:%M)"-"$(date +%H:%M --date="${1:-5}min")" accept
|
sudo nft add rule inet filter outall meta hour "$(date +%H:%M)"-"$(date +%H:%M --date="${1:-10}min")" accept
|
||||||
#expr \( "$1" \> 40 \) \* 10 \| "$1"
|
#expr \( "$1" \> 40 \) \* 10 \| "$1"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue