-
Notifications
You must be signed in to change notification settings - Fork 0
/
link.sh
executable file
·28 lines (25 loc) · 1.23 KB
/
link.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/bash
ln -siv $(pwd)/.ackrc ~/.ackrc
ln -siv $(pwd)/.zshrc ~/.zshrc
ln -siv $(pwd)/.zprofile ~/.zprofile
ln -siv $(pwd)/.bashrc ~/.bashrc
ln -siv $(pwd)/.profile ~/.profile
ln -siv $(pwd)/.mypy.ini ~/.mypy.ini
ln -siv $(pwd)/.gitconfig ~/.gitconfig
ln -siv $(pwd)/.ansible.cfg ~/.ansible.cfg
ln -siv $(pwd)/init.vim ~/.config/nvim/init.vim
ln -siv $(pwd)/salman.zsh-theme $ZSH/themes/salman.zsh-theme
# The above commands will create $HOME level dotfiles as symlinks to files in this repo
# on whatever device this script is cloned and executed in.
# If those files already exist, you will be prompted to unlink those files so that the
# new link can occur.
# You can later convert these symlinks to hardlinks to the same files, such as with:
# ln -f "$(readlink <symlink>)" <symlink>
# CoC vim plugin config:
# Normally the first word suggested is selected by default.
# We disable that with the setting `"suggest.noselect": true`.
# Settings are saved in ~/.config/nvim/coc-settings.json
# which can be opened with command :CocConfig from a TS/X file.
# If it gets to be long then version-control it in dotfiles
# repo to symlink it as above. Otherwise set it like so:
echo '{\n "suggest.noselect": true\n}' > ~/.config/nvim/coc-settings.json