blob: ac0d741879c4422f4b88038064fd72374bf751db (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/usr/bin/env zsh
source "${DOTFILES:-"${HOME}/dotfiles"}/sh/wsl.sh"
source "${DOTFILES:-"${HOME}/dotfiles"}/sh/gpg.sh"
hash -d w=/mnt/c/Users/$USER
function r-copy() {
if ((REGION_ACTIVE)) then
zle copy-region-as-kill
(( ${+aliases[cb]} )) && printf "$CUTBUFFER" | cb
else
zle kill-whole-line
fi
}
function r-cut() {
if ((REGION_ACTIVE)) then
zle kill-region
else
zle kill-whole-line
fi
(( ${+aliases[cb]} )) && printf "$CUTBUFFER" | cb
}
|