Skip to content
Permalink
Browse files

move dotfiles to .dotfiles

  • Loading branch information
BosEriko committed Feb 6, 2020
1 parent f70e3a8 commit 767875632435597dd9dec3a4f7b2588b0c8955f7
@@ -4,8 +4,8 @@ This dotfiles is meant to be run on a fresh install of OSX only.
## Installation
``` sh
xcode-select --install
git clone https://github.com/BosEriko/dotfiles.git ~/dotfiles
~/dotfiles/install/entry.sh
git clone https://github.com/BosEriko/dotfiles.git ~/.dotfiles
~/.dotfiles/install/entry.sh
```

## A few more steps
@@ -1,11 +1,11 @@
#!/usr/bin/env sh

# .zshrc
~/dotfiles/zsh/generate.sh
~/.dotfiles/zsh/generate.sh

# .tmux.conf
~/dotfiles/tmux/generate.sh
~/.dotfiles/tmux/generate.sh

# init.vim
~/dotfiles/vim/generate.sh
~/.dotfiles/vim/generate.sh

@@ -1,24 +1,24 @@
#!/usr/bin/env sh

~/dotfiles/install/modules/brew.sh
~/dotfiles/install/modules/fzf.sh
~/dotfiles/install/modules/plug.sh
~/dotfiles/install/modules/yabai.sh
~/dotfiles/install/modules/rust.sh
~/dotfiles/install/modules/composer.sh
~/dotfiles/install/modules/ranger-icon.sh
~/dotfiles/install/modules/laravel.sh
~/dotfiles/install/modules/node.sh
~/dotfiles/install/modules/rbenv.sh
~/dotfiles/install/modules/gem.sh
~/dotfiles/install/modules/pip.sh
~/dotfiles/install/modules/mkdir.sh
~/dotfiles/install/modules/zsh.sh
~/dotfiles/install/modules/karabiner.sh
~/dotfiles/install/modules/nerd-font.sh
~/dotfiles/install/modules/dotfiles.sh
~/dotfiles/install/modules/nvim.sh
~/dotfiles/install/modules/key-repeat.sh
~/dotfiles/install/modules/vscodium.sh
~/dotfiles/install/modules/ssh.sh
~/.dotfiles/install/modules/brew.sh
~/.dotfiles/install/modules/fzf.sh
~/.dotfiles/install/modules/plug.sh
~/.dotfiles/install/modules/yabai.sh
~/.dotfiles/install/modules/rust.sh
~/.dotfiles/install/modules/composer.sh
~/.dotfiles/install/modules/ranger-icon.sh
~/.dotfiles/install/modules/laravel.sh
~/.dotfiles/install/modules/node.sh
~/.dotfiles/install/modules/rbenv.sh
~/.dotfiles/install/modules/gem.sh
~/.dotfiles/install/modules/pip.sh
~/.dotfiles/install/modules/mkdir.sh
~/.dotfiles/install/modules/zsh.sh
~/.dotfiles/install/modules/karabiner.sh
~/.dotfiles/install/modules/nerd-font.sh
~/.dotfiles/install/modules/dotfiles.sh
~/.dotfiles/install/modules/nvim.sh
~/.dotfiles/install/modules/key-repeat.sh
~/.dotfiles/install/modules/vscodium.sh
~/.dotfiles/install/modules/ssh.sh

@@ -3,24 +3,24 @@
# Install the dotfiles
# =====> .gitconfig
rm ~/.gitconfig
ln -s ~/dotfiles/gitconfig ~/.gitconfig
ln -s ~/.dotfiles/gitconfig ~/.gitconfig
# =====> .hyper.js
rm ~/.hyper.js
ln -s ~/dotfiles/hyper.js ~/.hyper.js
ln -s ~/.dotfiles/hyper.js ~/.hyper.js
# =====> .yabairc (https://github.com/koekeishiya/yabai/wiki/Configuration#configuration-file)
rm ~/.yabairc
ln -s ~/dotfiles/yabairc ~/.yabairc
ln -s ~/.dotfiles/yabairc ~/.yabairc
# =====> VSCodium Settings
rm ~/Library/Application\ Support/VSCodium/User/settings.json
ln -s ~/dotfiles/vscodium/settings.json ~/Library/Application\ Support/VSCodium/User/settings.json
ln -s ~/.dotfiles/vscodium/settings.json ~/Library/Application\ Support/VSCodium/User/settings.json
# =====> VSCodium Keybindings
rm ~/Library/Application\ Support/VSCodium/User/keybindings.json
ln -s ~/dotfiles/vscodium/keybindings.json ~/Library/Application\ Support/VSCodium/User/keybindings.json
ln -s ~/.dotfiles/vscodium/keybindings.json ~/Library/Application\ Support/VSCodium/User/keybindings.json
# =====> .zsh_history
rm ~/.zsh_history
ln -s ~/dotfiles/zsh/history ~/.zsh_history
ln -s ~/.dotfiles/zsh/history ~/.zsh_history
# =====> Generate .zshrc, .tmux.conf and init.vim
~/dotfiles/generate.sh
~/.dotfiles/generate.sh
# Notify the user
terminal-notifier -title 'Installing' -message 'Dotfiles have been linked.'

@@ -1,6 +1,6 @@
#!/usr/bin/env sh

# Install VSCodium Extensions
~/dotfiles/vscodium/extensions.sh
~/.dotfiles/vscodium/extensions.sh
terminal-notifier -title 'Installing' -message 'VSCodium Extensions have been installed.'

@@ -1,9 +1,9 @@
#!/usr/bin/env sh

rm ~/.tmux.conf
cat ~/dotfiles/tmux/modules/config.tmux.sh \
~/dotfiles/tmux/modules/hotkeys.tmux.sh \
~/dotfiles/tmux/modules/theme.tmux.sh \
cat ~/.dotfiles/tmux/modules/config.tmux.sh \
~/.dotfiles/tmux/modules/hotkeys.tmux.sh \
~/.dotfiles/tmux/modules/theme.tmux.sh \
> ~/.tmux.conf
terminal-notifier -title 'Generating' -message 'The .tmux.conf file has been generated.'

@@ -1,10 +1,10 @@
#!/usr/bin/env sh

rm ~/.config/nvim/init.vim || mkdir -p ~/.config/nvim
cat ~/dotfiles/vim/modules/plugins.vim \
~/dotfiles/vim/modules/config.vim \
~/dotfiles/vim/modules/theme.vim \
~/dotfiles/vim/modules/hotkeys.vim \
cat ~/.dotfiles/vim/modules/plugins.vim \
~/.dotfiles/vim/modules/config.vim \
~/.dotfiles/vim/modules/theme.vim \
~/.dotfiles/vim/modules/hotkeys.vim \
> ~/.config/nvim/init.vim
terminal-notifier -title 'Generating' -message 'The init.vim file has been generated.'

@@ -13,7 +13,7 @@ nnoremap <silent> <C-x> :bd<CR>
nnoremap <silent> <C-q> :q<CR>
nnoremap <silent> <C-s> :w<CR>
nnoremap <silent> <C-c> :TComment<CR>
nnoremap <silent> <C-k> :!cat ~/dotfiles/vim/modules/hotkeys.vim<CR>
nnoremap <silent> <C-k> :!cat ~/.dotfiles/vim/modules/hotkeys.vim<CR>
nnoremap <silent> <C-b> :let @+ = expand("%")<CR>
nnoremap <C-f> :CtrlSF<space>
nnoremap <C-g> :%s/old/new/g
@@ -1,26 +1,26 @@
#!/usr/bin/env sh

rm ~/.zshrc
cat ~/dotfiles/zsh/modules/config.z.sh \
~/dotfiles/zsh/modules/plugins.z.sh \
~/dotfiles/zsh/modules/vim.z.sh \
~/dotfiles/zsh/modules/hotkeys.z.sh \
~/dotfiles/zsh/modules/dir.z.sh \
~/dotfiles/zsh/modules/alias.z.sh \
~/dotfiles/zsh/modules/docker.z.sh \
~/dotfiles/zsh/modules/tmux.z.sh \
~/dotfiles/zsh/modules/projects.z.sh \
~/dotfiles/zsh/modules/ops.z.sh \
~/dotfiles/zsh/modules/fzf.z.sh \
~/dotfiles/zsh/modules/nvm.z.sh \
~/dotfiles/zsh/modules/rvm.z.sh \
~/dotfiles/zsh/modules/flutter.z.sh \
~/dotfiles/zsh/modules/rust.z.sh \
~/dotfiles/zsh/modules/composer.z.sh \
~/dotfiles/zsh/modules/git.z.sh \
~/dotfiles/zsh/modules/personal.z.sh \
~/dotfiles/zsh/modules/up.z.sh \
~/dotfiles/zsh/modules/down.z.sh \
cat ~/.dotfiles/zsh/modules/config.z.sh \
~/.dotfiles/zsh/modules/plugins.z.sh \
~/.dotfiles/zsh/modules/vim.z.sh \
~/.dotfiles/zsh/modules/hotkeys.z.sh \
~/.dotfiles/zsh/modules/dir.z.sh \
~/.dotfiles/zsh/modules/alias.z.sh \
~/.dotfiles/zsh/modules/docker.z.sh \
~/.dotfiles/zsh/modules/tmux.z.sh \
~/.dotfiles/zsh/modules/projects.z.sh \
~/.dotfiles/zsh/modules/ops.z.sh \
~/.dotfiles/zsh/modules/fzf.z.sh \
~/.dotfiles/zsh/modules/nvm.z.sh \
~/.dotfiles/zsh/modules/rvm.z.sh \
~/.dotfiles/zsh/modules/flutter.z.sh \
~/.dotfiles/zsh/modules/rust.z.sh \
~/.dotfiles/zsh/modules/composer.z.sh \
~/.dotfiles/zsh/modules/git.z.sh \
~/.dotfiles/zsh/modules/personal.z.sh \
~/.dotfiles/zsh/modules/up.z.sh \
~/.dotfiles/zsh/modules/down.z.sh \
> ~/.zshrc
terminal-notifier -title 'Generating' -message 'The .zshrc file has been generated.'

@@ -2,9 +2,9 @@
# =================================================================================== [Down] ===== #

down() {
(cd ~/dotfiles && git add ~/dotfiles/zsh/history)
(cd ~/dotfiles && git commit -m "[Update ZSH History $(date +%s)]")
(cd ~/dotfiles && git push origin master)
(cd ~/.dotfiles && git add ~/.dotfiles/zsh/history)
(cd ~/.dotfiles && git commit -m "[Update ZSH History $(date +%s)]")
(cd ~/.dotfiles && git push origin master)
terminal-notifier -title 'ZSH' -message 'History has been pushed.'
}

@@ -101,14 +101,14 @@ bos() {
echo "Update VSCodium extensions list located at your dotfiles? (Ctrl-C to abort, or press enter to continue)"
read
echo "Please wait..."
rm -rf ~/dotfiles/vscodium/extensions.sh
codium --list-extensions | xargs -L 1 echo codium --install-extension > ~/dotfiles/vscodium/extensions.sh
rm -rf ~/.dotfiles/vscodium/extensions.sh
codium --list-extensions | xargs -L 1 echo codium --install-extension > ~/.dotfiles/vscodium/extensions.sh
echo "VSCodium extensions list have been updated over on the dotfiles."
elif [ "$2" = "vse-install" ]; then
echo "Do you want to install VSCodium extensions from the list located at your dotfiles? (Ctrl-C to abort, or press enter to continue)"
read
echo "Please wait..."
sh ~/dotfiles/vscodium/extensions.sh
sh ~/.dotfiles/vscodium/extensions.sh
echo "VSCodium extensions have been installed."
elif [ "$2" = "qutebrowser" ]; then
if [ -z "$3" ]; then
@@ -13,7 +13,7 @@ jt() {
cd /Volumes
;;
"dotfiles")
cd ~/dotfiles
cd ~/.dotfiles
;;
"ops")
cd ~/development/OpsManager
@@ -2,10 +2,10 @@
# ===================================================================================== [Up] ===== #

up() {
(cd ~/dotfiles && git checkout ~/dotfiles/zsh/history)
(cd ~/.dotfiles && git checkout ~/.dotfiles/zsh/history)
terminal-notifier -title 'ZSH' -message 'History has been synced.'
(cd ~/dotfiles && git pull)
sh ~/dotfiles/generate.sh
(cd ~/.dotfiles && git pull)
sh ~/.dotfiles/generate.sh
nvim +PlugInstall +qall
terminal-notifier -title 'Installing' -message 'Vim Extensions have been installed.'
brew services stop yabai

0 comments on commit 7678756

Please sign in to comment.
You can’t perform that action at this time.