Diphia / dotfiles

Linux & macOS dotfiles

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dotfiles

Get Started

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

Emacs

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

Zsh

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

Tmux

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

Vifm

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

Vim

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

Scripts

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

Karabiner

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

Hammerspoon

link hammerspoon configurations:

mv /Users/diphia/.hammerspoon /Users/diphia/.hammerspoon.bak
ln -s /Users/diphia/dotfiles/.hammerspoon /Users/diphia/.hammerspoon

About

Linux & macOS dotfiles


Languages

Language:Emacs Lisp 57.3%Language:Python 20.3%Language:Shell 10.4%Language:Lua 9.3%Language:Vim Script 1.5%Language:YASnippet 0.9%Language:PowerShell 0.4%