diff options
Diffstat (limited to '.aliases')
-rw-r--r-- | .aliases | 7 |
1 files changed, 2 insertions, 5 deletions
@@ -76,11 +76,8 @@ alias @s="cd ~/writing/scratch/ && vim scratch.txt" alias todos="ack -n --nogroup '(TODO|FIX(ME)?):'" # open and close encrypted volume: -alias closevaultold="cd ~/documents && tar cz vault/ | openssl enc -aes-256-cbc -out ~/documents/vault.tar.gz.dat && rm -rf vault" -alias closevault="cd ~/documents && gpg-zip -c -o vault.gpg vault && rm -rf vault && cd" -alias openvault="cd ~/documents && gpg-zip -d vault.gpg" -alias openvaultold="openssl enc -aes-256-cbc -d -in ~/documents/vault.tar.gz.dat | tar xz -C ~/documents" - +alias closevault="cd && cd ~/documents && tar cz vault/ -f vault.tar && gpg -c vault.tar && rm vault.tar && rm -rf vault && cd" +alias openvault="cd && cd ~/documents && gpg vault.tar.gpg && tar -xzf vault.tar && rm vault.tar.gpg && rm -rf vault.tar && cd vault" # strip spaces in file names alias stripspaces='for f in *\ *; do mv "$f" "${f// /_}"; done' |