Support for cloning into devcontainer

This commit is contained in:
Ben Kreeger 2025-09-27 19:21:58 -05:00
parent f064b182c9
commit 94dea57868
Signed by: kreeger
GPG Key ID: D5CF8683D4BE4B50
3 changed files with 14 additions and 3 deletions

View File

@ -16,7 +16,7 @@ for directory in "${directories[@]}"; do
ln -sfv "$SCRIPTPATH/$directory" "$XDG_CONFIG_HOME/$directory"
done
zshfiles=("zshenv" "zprofile" "zshrc")
zshfiles=("zshenv" "zshrc")
for file in "${zshfiles[@]}"; do
if [[ -a "$HOME/.$file" && $* == *--no-force* ]]; then continue; fi
ln -sfv "$SCRIPTPATH/zsh/$file" "$HOME/.$file"

View File

@ -1,6 +1,11 @@
# vim: filetype=zsh
SCRIPTPATH=$HOME/.config/dotfiles/zsh
if [[ -d $HOME/.config/dotfiles/zsh ]]; then
SCRIPTPATH=$HOME/.config/dotfiles/zsh
elif [[ -d $HOME/dotfiles/zsh ]]; then
SCRIPTPATH=$HOME/dotfiles/zsh
fi
ZSH_CACHE_DIR="$HOME/.cache/zsh"
# Let GPG know which tty we're using and put in charge of SSH auth

View File

@ -17,7 +17,13 @@ setopt HIST_IGNORE_SPACE
setopt AUTO_CD
setopt PROMPT_SUBST
SCRIPTPATH=$HOME/.config/dotfiles/zsh
if [[ -d $HOME/.config/dotfiles/zsh ]]; then
SCRIPTPATH=$HOME/.config/dotfiles/zsh
elif [[ -d $HOME/dotfiles/zsh ]]; then
SCRIPTPATH=$HOME/dotfiles/zsh
fi
source $SCRIPTPATH/zprofile
# Use emacs-style binds instead of vim
bindkey -e