Update fish/tmux.

This commit is contained in:
Érico Nogueira 2021-07-28 02:29:17 -03:00
parent 4bcb0d0704
commit 73683e97fe
3 changed files with 21 additions and 1 deletions

View File

@ -14,6 +14,10 @@ alias clem='emacsclient -n'
alias temacs="emacs -nw"
function spell
aspell -a | sed '1d;$d'
end
function mdbat --argument-names file
lowdown -Tterm $file | less -R
end
@ -23,3 +27,7 @@ if not command -sq mdcat
lowdown -Tterm $file
end
end
function manp
MANPAGER=zathura man -Tpdf $argv
end

View File

@ -30,7 +30,16 @@ alias pre='cd ../'
alias weather='curl wttr.in/'
## Aliases for quick grepping
alias rgmod='lsmod | rg -i'
alias rgmod='lsmod | grep -i'
alias rug='ug --ignore-files --sort -r'
function watchps --description "Watch process(es)"
set _p (pgrep -f "$argv[1]")
[ -z "$_p" ]
and return 1
watch -n.1 ps -o pid,%cpu,nlwp,vsz,sz $_p
end
function randpw -a digits \
--description "Generates a random password with the specified number of digits, and copies it into the Wayland buffer."

View File

@ -21,6 +21,9 @@ bind -n M-down set -q status off
bind -n M-up set -q status on
bind P paste-buffer
# https://unix.stackexchange.com/questions/101949
bind % split -h -c "#{pane_current_path}"
set -sg escape-time 0
set -g mouse on