From 70c93798dba49fae75603a84fc515fddcdfa9ca1 Mon Sep 17 00:00:00 2001 From: katherine Date: Tue, 14 May 2019 20:54:52 -0700 Subject: update ssh-related aliases --- .zshrc-linux-desktop | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.zshrc-linux-desktop b/.zshrc-linux-desktop index dc6c78f..148e3d2 100644 --- a/.zshrc-linux-desktop +++ b/.zshrc-linux-desktop @@ -1,9 +1,13 @@ ################### ALIASES ################## -alias ssh-socks='ssh -C2qTnN -F /dev/null -D 9853 airen-no-jikken.icu' +if [[ $(whence sshfs) != "" ]] then + alias smutt='ssh -t shmibs@airen-no-jikken.icu mutt' + alias kmutt='ssh -t k@airen-no-jikken.icu mutt' +fi -if [[ "$(whence sshfs)" != "" ]] then - alias smounth='mkdir -p ~/airen-no-jikken.icu; sshfs airen-no-jikken.icu: ~/airen-no-jikken.icu' - alias smountw='mkdir -p ~/airen-no-jikken.icu; sshfs airen-no-jikken.icu:/usr/local/www/apache24/data/ ~/airen-no-jikken.icu' - alias sumount='fusermount -u ~/airen-no-jikken.icu; rmdir ~/airen-no-jikken.icu' +if [[ $(whence sshfs) != "" ]] then + alias smount='mkdir -p ~/mount-shmibs && sshfs shmibs@airen-no-jikken.icu: ~/mount-shmibs || rmdir ~/mount-shmibs' + alias kmount'mkdir -p ~/mount-k && sshfs k@airen-no-jikken.icu: ~/mount-k || rmdir ~/mount-k' + alias sumount='fusermount -u ~/mount-shmibs && rmdir ~/mount-shmibs' + alias kumount='fusermount -u ~/mount-shmibs && rmdir ~/mount-k' fi -- cgit v1.2.3