-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·45 lines (41 loc) · 2.19 KB
/
install.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
#!/bin/sh
SCRIPT="$(realpath $0)"
BASEDIR=$(dirname "$SCRIPT")
# install fonts
[ -d "$HOME/.local/share/fonts" ] && unlink $HOME/.local/share/fonts; ln -s $BASEDIR/dot.fonts $HOME/.local/share/fonts
fc-cache
# make dotfiles available
ln -s $BASEDIR/dot.mkshrc $HOME/.mkshrc
ln -s $BASEDIR/dot.mksh_alias $HOME/.mksh_alias
ln -s $BASEDIR/dot.mksh_env $HOME/.mksh_env
#ln -s $BASEDIR/dot.taskrc $HOME/.taskrc
#ln -s $BASEDIR/dot.zshrc $HOME/.zshrc
#ln -s $BASEDIR/dot.asoundrc $HOME/.asoundrc
ln -s $BASEDIR/dot.vimrc $HOME/.vimrc
#ln -s $BASEDIR/dot.ctags $HOME/.ctags
#ln -s $BASEDIR/dot.nbrc $HOME/.nbrc
#ln -s $BASEDIR/dot.gdbinit $HOME/.gdbinit
ln -s $BASEDIR/dot.alacritty.toml $HOME/.alacritty.toml
ln -s $BASEDIR/dot.emacs $HOME/.emacs
ln -s $BASEDIR/dot.tmux.conf $HOME/.tmux.conf
[ -d "$HOME/.emacs.d" ] && unlink $HOME/.emacs.d; ln -s $BASEDIR/dot.emacs.d $HOME/.emacs.d
ln -s $BASEDIR/dot.gf2_config.ini $HOME/.config/gf2_config.ini
[ -d "$HOME/.vim" ] && unlink $HOME/.vim; ln -s $BASEDIR/dot.vim $HOME/.vim
[ -d "$HOME/.config/nvim" ] && unlink $HOME/.config/nvim; ln -s $BASEDIR/dot.nvim $HOME/.config/nvim
[ -d "$HOME/.config/focus-editor" ] && unlink $HOME/.config/focus-editor; ln -s $BASEDIR/dot.focus $HOME/.config/focus-editor
[ -d "$HOME/.dwm-status" ] && unlink $HOME/.dwm-status; ln -s $BASEDIR/dot.dwm-status $HOME/.dwm-status
[ -d "$HOME/.local/bin" ] && unlink $HOME/.local/bin; ln -s $BASEDIR/bin $HOME/.local/bin
#[ -d "$HOME/.config/ranger" ] && unlink $HOME/.config/ranger; ln -s $BASEDIR/ranger $HOME/.config/ranger
#[ -d "$HOME/.config/foot" ] && unlink $HOME/.config/foot; ln -s $BASEDIR/foot $HOME/.config/foot
#[ -d "$HOME/.config/yambar" ] && unlink $HOME/.config/yambar; ln -s $BASEDIR/yambar $HOME/.config/yambar
#[ -d "$HOME/.doom.d" ] && unlink $HOME/.doom.d; ln -s $BASEDIR/dot.doom.d $HOME/.doom.d
[ -d "$HOME/.nixpkgs" ] && unlink $HOME/.nixpkgs; ln -s $BASEDIR/dot.nixpkgs $HOME/.nixpkgs
ln -s $BASEDIR/dot.xprofile $HOME/.xprofile
ln -s $BASEDIR/dot.xinitrc $HOME/.xinitrc
[ -d "$HOME/.config/mpv" ] && unlink $HOME/.config/mpv; ln -s $BASEDIR/mpv $HOME/.config/mpv
# install/update lite editor
cd lite > /dev/null
echo
echo "#### Installing Lite editor ####"
/bin/sh ./updater.sh
cd - > /dev/null