piknik
This commit is contained in:
parent
722705f502
commit
4fd5bbf529
1 changed files with 36 additions and 1 deletions
37
.zshrc
37
.zshrc
|
@ -310,6 +310,41 @@ eval "$(atuin init zsh)"
|
||||||
|
|
||||||
bindkey '^r' _atuin_search_widget
|
bindkey '^r' _atuin_search_widget
|
||||||
|
|
||||||
# vim: set ft=zsh et sw=0 ts=2 sts=0:
|
### broot file browser
|
||||||
|
|
||||||
source /home/leo/.config/broot/launcher/bash/br
|
source /home/leo/.config/broot/launcher/bash/br
|
||||||
|
|
||||||
|
|
||||||
|
### piknik
|
||||||
|
|
||||||
|
# pko <content> : copy <content> to the clipboard
|
||||||
|
function pko() {
|
||||||
|
echo "$*" | piknik -copy
|
||||||
|
}
|
||||||
|
|
||||||
|
# pkf <file> : copy the content of <file> to the clipboard
|
||||||
|
function pkf() {
|
||||||
|
piknik -copy < $1
|
||||||
|
}
|
||||||
|
|
||||||
|
# pkc : read the content to copy to the clipboard from STDIN
|
||||||
|
alias pkc='piknik -copy'
|
||||||
|
|
||||||
|
# pkp : paste the clipboard content
|
||||||
|
alias pkp='piknik -paste'
|
||||||
|
|
||||||
|
# pkm : move the clipboard content
|
||||||
|
alias pkm='piknik -move'
|
||||||
|
|
||||||
|
# pkz : delete the clipboard content
|
||||||
|
alias pkz='piknik -copy < /dev/null'
|
||||||
|
|
||||||
|
# pkfr [<dir>] : send a whole directory to the clipboard, as a tar archive
|
||||||
|
function pkfr() {
|
||||||
|
tar czpvf - ${1:-.} | piknik -copy
|
||||||
|
}
|
||||||
|
|
||||||
|
# pkpr : extract clipboard content sent using the pkfr command
|
||||||
|
alias pkpr='piknik -paste | tar xzpvf -'
|
||||||
|
|
||||||
|
# vim: set ft=zsh et sw=0 ts=2 sts=0:
|
||||||
|
|
Loading…
Reference in a new issue