mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-22 11:19:22 +01:00
install-on-tails.bash: fix persistent dot files path
This commit is contained in:
parent
73c1591080
commit
731e8c74a9
@ -6,8 +6,9 @@ set +x
|
|||||||
# Tails appears to come with lsb_release and return Tails
|
# Tails appears to come with lsb_release and return Tails
|
||||||
export DISTROID="$(lsb_release -si)"
|
export DISTROID="$(lsb_release -si)"
|
||||||
|
|
||||||
# Tails persistent directory
|
# Tails persistent directories
|
||||||
export PERSISTDIR="$HOME/Persistent"
|
export PERSISTDIR="$HOME/Persistent"
|
||||||
|
export PERSISTDOTFILESDIR="/live/persistence/TailsData_unlocked/dotfiles"
|
||||||
|
|
||||||
# This target directory
|
# This target directory
|
||||||
export SHELL_THINGS_REPO="$HOME/Persistent/src/codeberg.org/Aminda/shell-things"
|
export SHELL_THINGS_REPO="$HOME/Persistent/src/codeberg.org/Aminda/shell-things"
|
||||||
@ -32,10 +33,10 @@ if [[ ! -d "$PERSISTDIR" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# THIS IS YOUR FINAL WARNING!
|
# THIS IS YOUR FINAL WARNING!
|
||||||
if [[ ! -d "$PERSISTDIR/dotfiles" ]]; then
|
if [[ ! -d "$PERSISTDOTFILESDIR" ]]; then
|
||||||
printf "\nWARNING! Persistent/dotfiles directory not found, check"
|
printf "\nWARNING! $PERSISTDOTFILESDIR directory not found, check"
|
||||||
printf "\npersistent storage settings To override:\n"
|
printf "\npersistent storage settings To override:\n"
|
||||||
printf "\tmkdir -vp $PERSISTDIR/dotfiles \n\n"
|
printf "\tmkdir -vp $PERSISTDOTFILESDIR \n\n"
|
||||||
sleep 3
|
sleep 3
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
@ -62,18 +63,18 @@ fi
|
|||||||
cd
|
cd
|
||||||
|
|
||||||
# bash
|
# bash
|
||||||
cp -v $SHELL_THINGS_REPO/rc/bashrc $PERSISTDIR/dotfiles/.bashrc
|
cp -v $SHELL_THINGS_REPO/rc/bashrc $PERSISTDOTFILESDIR/.bashrc
|
||||||
ln -nsfv $PERSISTDIR/dotfiles/.bashrc $HOME/
|
ln -nsfv $PERSISTDOTFILESDIR/.bashrc $HOME/
|
||||||
# zsh
|
# zsh
|
||||||
cp -v $SHELL_THINGS_REPO/rc/zshrc $PERSISTDIR/dotfiles/.zshrc
|
cp -v $SHELL_THINGS_REPO/rc/zshrc $PERSISTDOTFILESDIR/.zshrc
|
||||||
ln -nsfv $PERSISTDIR/dotfiles/.zshrc $HOME/
|
ln -nsfv $PERSISTDOTFILESDIR/.zshrc $HOME/
|
||||||
# tmux
|
# tmux
|
||||||
cp -v $SHELL_THINGS_REPO/conf/tmux.conf $PERSISTDIR/dotfiles/.tmux.conf
|
cp -v $SHELL_THINGS_REPO/conf/tmux.conf $PERSISTDOTFILESDIR/.tmux.conf
|
||||||
ln -nsfv $PERSISTDIR/dotfiles/.tmux.conf $HOME/
|
ln -nsfv $PERSISTDOTFILESDIR/.tmux.conf $HOME/
|
||||||
# git
|
# git
|
||||||
git config --global gpg.ssh.allowedSignersFile $PERSISTDIR/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers
|
git config --global gpg.ssh.allowedSignersFile $PERSISTDIR/src/codeberg.org/Aminda/ssh-allowed_signers/allowed_signers
|
||||||
cp $SHELL_THINGS_REPO/conf/gitconfig $PERSISTDIR/dotfiles/.gitconfig
|
cp $SHELL_THINGS_REPO/conf/gitconfig $PERSISTDOTFILESDIR/.gitconfig
|
||||||
ln -nsfv $PERSISTDIR/dotfiles/.gitconfig $HOME/
|
ln -nsfv $PERSISTDOTFILESDIR/.gitconfig $HOME/
|
||||||
|
|
||||||
# Hack for directories expecting it to work, although only for this boot
|
# Hack for directories expecting it to work, although only for this boot
|
||||||
ln -nsfv $SHELL_THINGS_REPO $HOME/.shell-things
|
ln -nsfv $SHELL_THINGS_REPO $HOME/.shell-things
|
||||||
|
Loading…
Reference in New Issue
Block a user