clone this repository
git clone git@github.com:Diphia/dotfiles.git ~/dotfiles
it is highly recommanded to config emacs first, then use org-babel-execute-src-block
to run the config commands
clone doom emacs itself
git clone --depth 1 https://github.com/hlissner/doom-emacs ~/.emacs.d
install:
~/.emacs.d/bin/doom install
remove the default config and set softlink for doom emacs config
mv ~/.doom.d ~/.doom.d.bak
ln -s /Users/diphia/dotfiles/.doom.d /Users/diphia/.doom.d
run doom sync to write doom configs to emacs configs
~/.emacs.d/bin/doom sync
install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
clone zsh-autosuggestions:
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
remove the default config and source to dotfiles/.zshrc
mv ~/.zshrc ~/.zshrc.bak
touch ~/.zshrc.local
touch ~/.zshrc
echo "source ~/dotfiles/.zshrc" >> ~/.zshrc
echo "source ~/.zshrc.local" >> ~/.zshrc
add monas to theme:
ln -s /Users/diphia/dotfiles/monas.zsh-theme /Users/diphia/.oh-my-zsh/themes/monas.zsh-theme
remove the default config and source to dotfiles/.tmux.conf
mv ~/.tmux.conf ~/.tmux.conf.bak
touch ~/.tmux.conf.local
touch ~/.tmux.conf
echo "source ~/dotfiles/.tmux.conf" >> ~/.tmux.conf
echo "source ~/.tmux.conf.local" >> ~/.tmux.conf
remove the default config and source to dotfiles/vifmrc
mv ~/.vifm ~/.vifm.bak
mkdir ~/.vifm
touch ~/.vifm/vifmrc
touch ~/vifmrc.local
echo "source ~/dotfiles/vifmrc" >> ~/.vifm/vifmrc
echo "source ~/vifmrc.local" >> ~/.vifm/vifmrc
remove the default config and source to dotfiles/.vimrc
mv ~/.vimrc ~/.vimrc.bak
touch ~/.vimrc.local
echo "source ~/dotfiles/.vimrc" >> ~/.vimrc
echo "source ~/.vimrc.local" >> ~/.vimrc
set soft links to /usr/local/bin/
chmod +x /Users/diphia/dotfiles/scripts/sshl.py && ln -s /Users/diphia/dotfiles/scripts/sshl.py /usr/local/bin/sshl
chmod +x /Users/diphia/dotfiles/scripts/server-side-copy.py && ln -s /Users/diphia/dotfiles/scripts/server-side-copy.py /usr/local/bin/server-side-copy
link complex modification configurations:
mv /Users/diphia/.config/karabiner/assets/complex_modifications /Users/diphia/.config/karabiner/assets/complex_modifications.bak
ln -s /Users/diphia/dotfiles/karabiner/assets/complex_modifications/ /Users/diphia/.config/karabiner/assets/complex_modifications
link hammerspoon configurations:
mv /Users/diphia/.hammerspoon /Users/diphia/.hammerspoon.bak
ln -s /Users/diphia/dotfiles/.hammerspoon /Users/diphia/.hammerspoon