A repo with various config files with setup guide. Useful for Linux with zsh as shell or macOS (which includes zsh preinstalled).
Make sure you have zsh installed
zsh --versionChange your login shell to zsh
chsh -s /bin/zshChange Zsh config directory by defining ZDOTDIR at the top of /etc/zsh/zshenv (or /etc/zshenv for some systems)
export ZDOTDIR=$HOME/.config/zsh
...Install Oh My Zsh by running the snippet below. The ZSH variable specifies where Oh My Zsh will be installed.
export ZSH=$HOME/.local/share/oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"Install Oh My Posh by running the snippet below. You can choose any directory listed in the PATH variable instead of $HOME/.local/bin. The installer may prompt you to install some dependencies if they aren't installed yet.
curl -s https://ohmyposh.dev/install.sh | sh -s -- -d $HOME/.local/binClone this repo into $HOME/.local/share/dotfiles directory and change your current directory to it
git clone https://github.com/pacifi5t/dotfiles $HOME/.local/share/dotfiles
cd $HOME/.local/share/dotfilesNote
You can use any directory you want, but you must export DOTFILES_HOME environment variable. Otherwise, the script link-files.py that creates symlinks for files will assume that dotfiles are in $HOME/.local/share/dotfiles directory.
export DOTFILES_HOME=/your/custom/path
git clone https://github.com/pacifi5t/dotfiles $DOTFILES_HOME
...Don't forget to change DOTFILES_HOME variable in common/.config/zsh/.zshenv!
Make sure you have Python 3 installed
python3 --versionRun the link-files.py script
python3 scripts/link-files.py