aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/zsh/wsl.zsh
blob: 37bb4472d60e834d5c0af9677d49b2196439eb59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
source "${DOTFILES:-"${HOME}/dotfiles"}/shell/wsl.sh"
source "${DOTFILES:-"${HOME}/dotfiles"}/shell/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
}