Created
July 22, 2022 04:02
-
-
Save Maki-Daisuke/1e8c6bd12d57cfdb145fcdf9bb287a27 to your computer and use it in GitHub Desktop.
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
#!/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