Skip to content

Instantly share code, notes, and snippets.

@Maki-Daisuke
Created July 22, 2022 04:02
Show Gist options
  • Save Maki-Daisuke/1e8c6bd12d57cfdb145fcdf9bb287a27 to your computer and use it in GitHub Desktop.
Save Maki-Daisuke/1e8c6bd12d57cfdb145fcdf9bb287a27 to your computer and use it in GitHub Desktop.
#!/usr/bin/zsh
if which zsh; then
chsh -s `which zsh`
else
echo "Run this script on Zsh!"
exit 1
fi
# Install zprezto
git clone --recursive https://github.com/Maki-Daisuke/prezto.git "${ZDOTDIR:-$HOME}/.zprezto"
[ -f .zshrc ] && mv .zshrc .zshrc.bak
setopt EXTENDED_GLOB
for rcfile in "${ZDOTDIR:-$HOME}"/.zprezto/runcoms/^README.md(.N); do
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done
# Symlink to .files on Windows Home directory
WinHome=/mnt/c/Users/`powershell.exe -Command 'Write-Host $Env:Username'`
for i in .aws .azure .git-credentials .gitconfig; do
ln -s $WinHome/$i $i
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment