Last active
August 29, 2015 13:58
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
From http://ubuntuforums.org/showthread.php?t=1332820
Added a rewrite for FISH Shell