1
0
Fork 0
mirror of https://gitlab.com/mlunax/dotfiles.git synced 2025-04-16 15:36:51 +00:00
dotfiles/.zsh/func.zsh
2023-04-29 10:27:08 +02:00

22 lines
No EOL
413 B
Bash

# Turn control+z into a toggle switch
ctrlz() {
if [[ $#BUFFER == 0 ]]; then
fg >/dev/null 2>&1 && zle redisplay
else
zle push-input
fi
}
zle -N ctrlz
bindkey '^Z' ctrlz
squash() {
mksquashfs "$1" "$1.zst.sfs" -comp zstd -Xcompression-level 15
}
escfpath(){
printf "%q\n" "$(realpath "$1")"
}
if [[ -z "NOTICA_URL" ]]; then
notica() { curl --data "d:$*" "$NOTICA_URL" ; }
fi