summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzachir <zachir@librem.one>2023-07-18 00:19:34 -0500
committerzachir <zachir@librem.one>2023-07-18 00:19:34 -0500
commitb4c0b21a92978a06fbfb15144ec96ead69bcbce1 (patch)
tree9dbf4fb47107bd0bc347ccd2b5445a809ecc9740
parentd7f1bb39ffad7689a52b2203bddefaad55d3c035 (diff)
Add sh compliant shortcuts
-rw-r--r--sh/aliases1
-rw-r--r--sh/functions3
2 files changed, 4 insertions, 0 deletions
diff --git a/sh/aliases b/sh/aliases
index 93672b9..6b254d7 100644
--- a/sh/aliases
+++ b/sh/aliases
@@ -35,6 +35,7 @@ alias v='nvim'
## Change utils
alias rm='rm -i'
alias cp='cp -i'
+alias srsync='rsync -KPUcrtvyz'
## git stuff
alias gs='git status'
diff --git a/sh/functions b/sh/functions
index 3c73fb7..44d8e4f 100644
--- a/sh/functions
+++ b/sh/functions
@@ -32,6 +32,9 @@ if [[ "$SHELL" =~ .*zsh$ ]]; then
if [[ $1 != *"veracrypt"* ]]; then
print -sr -- "${1%%$'\n'}"
fc -p
+ elif [[ $1 != *"cryptsetup"* ]]; then
+ print -sr -- "${1%%$'\n'}"
+ fc -p
else
return 1
fi