Skip to content

Instantly share code, notes, and snippets.

@Dekker1
Last active August 29, 2015 13:58
Show Gist options
  • Save Dekker1/10006508 to your computer and use it in GitHub Desktop.
Save Dekker1/10006508 to your computer and use it in GitHub Desktop.
.zlogin and config.fish for public key authentication on computer with encrypted home folder (will prompt for password if home folder not yet decrypted)
if test -e $HOME/.ecryptfs/auto-mount; then
mount | grep "$HOME type ecryptfs"
if test $? != 0; then
ecryptfs-mount-private
cd $HOME
source ~/.zshrc
fi
fi
# This piece of code should be added to /etc/fish/config.fish. If your home-drive isn't decrypted, you will be prompted for your password.
if test -e $HOME/.ecryptfs/auto-mount
mount | grep "$HOME type ecryptfs"
if test $status != 0
ecryptfs-mount-private
cd $HOME
end
end
@Dekker1
Copy link
Author

Dekker1 commented Apr 6, 2014

From http://ubuntuforums.org/showthread.php?t=1332820

Added a rewrite for FISH Shell

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment