diff options
Diffstat (limited to '')
-rw-r--r-- | kshrc | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -13,6 +13,7 @@ export LANG=en_US.UTF-8 export LC_CTYPE=en_US.UTF-8 export CLICOLOR=1 #export PATH=$PATH:/usr/local/jdk-11/bin +export PATH=$PATH:/home/lemon/.fzf/bin export PATH=/home/lemon/bin:$PATH HISTFILE=$HOME/.ksh_history HISTSIZE=20000 @@ -43,6 +44,14 @@ alias weather='curl http://wttr.in/Berwick-upon-Tweed' command -v neomutt > /dev/null && alias mutt='neomutt' alias svim="doas vim" alias svi="doas vi" +alias rcal1w="ssh bobbins rem -cc+a1 -w160 -m" +alias rcal2w="ssh bobbins rem -cc+a2 -w160 -m" +alias rcal3w="ssh bobbins rem -cc+a3 -w160 -m" +alias rcal1m="ssh bobbins rem -cca -w160 -m" +alias rcal2m="ssh bobbins rem -cca2 -w160 -m" +alias qrclip="xclip -o -s c | qrencode -o - | feh --force-aliasing -ZF -" +alias rcal1w_small="ssh bobbins rem -cca+1 -w120 -m" +alias rcal2w_small="ssh bobbins rem -cca+2 -w120 -m" # nice colored prompt that also sets xterm title _XTERM_TITLE='\[\033]0;\u@\h:\w\007\]' @@ -53,3 +62,23 @@ case "$(id -u)" in *) _PS1_COLOR='\[\033[32m\]' ;; esac PS1='$_XTERM_TITLE\A $_PS1_COLOR\u@\h$_PS1_CLEAR:$_PS1_BLUE\w$_PS1_COLOR\$$_PS1_CLEAR ' + +todj () { + cat /home/lemon/Notes/journal/2022-04-17.md +} + +# FZF +export FZF_DEFAULT_COMMAND='ag -g ""' +export FZF_CTRL_T_COMMAND=$FZF_DEFAULT_COMMAND +export FZF_ALT_C_COMMAND=$FZF_DEFAULT_COMMAND +export FZF_DEFAULT_OPTS='--color info:108,prompt:109,spinner:108,pointer:168,marker:168' +#[ -f ~/.fzf.bash ] && source ~/.fzf.bash + +# from https://dataswamp.org/~solene/2021-10-17-ksh-fzf.html +function fzf-histo { + RES=$(fzf --tac --no-sort -e < $HISTFILE) + test -n "$RES" || exit 0 + eval "$RES" + } + +bind -m ^R=fzf-histo^J |