From 451738cb933791bb019aaa815205178ea2d288a9 Mon Sep 17 00:00:00 2001 From: Luna Komorebi Date: Sat, 15 Apr 2023 17:40:16 +0200 Subject: [PATCH] Add two new functions to .zsh/func.zsh: squash to create a compressed squashfs archive and escfpath to print the escaped absolute path of a file --- .zsh/func.zsh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.zsh/func.zsh b/.zsh/func.zsh index 5a98820..90d67ad 100644 --- a/.zsh/func.zsh +++ b/.zsh/func.zsh @@ -11,4 +11,8 @@ bindkey '^Z' ctrlz squash() { mksquashfs "$1" "$1.zst.sfs" -comp zstd -Xcompression-level 15 +} + +escfpath(){ + printf "%q\n" "$(realpath "$1")" } \ No newline at end of file