-
Notifications
You must be signed in to change notification settings - Fork 0
/
symlink.linux.sh
executable file
·57 lines (43 loc) · 1.8 KB
/
symlink.linux.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
# variables
export DOTFILES_DIR=~/dotfiles/dotfiles
export CONFIG_FILES_DIR=$DOTFILES_DIR/config_files
export SERVICES_DIR=$DOTFILES_DIR/services
export SCRIPTS_DIR=$DOTFILES_DIR/scripts
# create dirs
mkdir ~/.config/terminator/ 2>/dev/null
mkdir ~/.config/warp-terminal 2>/dev/null
mkdir ~/.config/nvim/ 2>/dev/null
# shell symlinks
ln -sf $CONFIG_FILES_DIR/bashrc ~/.bashrc
ln -sf $CONFIG_FILES_DIR/profile ~/.profile
ln -sf $CONFIG_FILES_DIR/zshrc ~/.zshrc
ln -sf $CONFIG_FILES_DIR/aliases ~/.bash_aliases
ln -sf $CONFIG_FILES_DIR/aliases ~/.aliases
# vim
ln -sf $CONFIG_FILES_DIR/vimrc ~/.vimrc
ln -sf $CONFIG_FILES_DIR/nvim_init.vim ~/.config/nvim/init.vim
#git
ln -sf $CONFIG_FILES_DIR/gitconfig ~/.gitconfig
# config files
# https://github.com/bulletmark/libinput-gestures
ln -sf $CONFIG_FILES_DIR/libinput_gestures/libinput-gestures.conf ~/.config/libinput-gestures.conf
# terminator
ln -sf $CONFIG_FILES_DIR/terminator_config ~/.config/terminator/config
# Wezterm
ln -sf $CONFIG_FILES_DIR/wezterm/wezterm.lua ~/.config/wezterm/wezterm.lua
# Warp-terminal
ln -sf $CONFIG_FILES_DIR/warp-terminal/keybindings.yaml ~/.config/warp-terminal/keybindings.yaml
ln -sf $CONFIG_FILES_DIR/warp-terminal/user_preferences.json ~/.config/warp-terminal/user_preferences.json
# Zsh Themes
ln -sf $CONFIG_FILES_DIR/zsh_themes/zsh_theme_powerline10k.zsh ~/.p10k.zsh
# MPV media player
mkdir -p ~/.config/mpv
ln -sf $CONFIG_FILES_DIR/mpv/input.conf ~/.config/mpv/input.conf
ln -sf $CONFIG_FILES_DIR/mpv/mpv.conf ~/.config/mpv/mpv.conf
# Systemd services
sudo ln -sf $SERVICES_DIR/battery-charge-threshold.service /etc/systemd/system/battery-charge-threshold.service
# Create nemo scripts link
sudo rm -rf $HOME/.local/share/nemo/scripts
ln -sf $SCRIPTS_DIR/nemo/ $HOME/.local/share/nemo/scripts
chmod +x $SCRIPTS_DIR/nemo/*