Support for cloning into devcontainer
This commit is contained in:
parent
f064b182c9
commit
94dea57868
2
setup.sh
2
setup.sh
@ -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"
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user