-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup_config.sh
executable file
·57 lines (49 loc) · 2.75 KB
/
setup_config.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
if [ ! -d "$HOME/.oh-my-zsh" ]; then
git clone https://github.com/robbyrussell/oh-my-zsh.git "$HOME/.oh-my-zsh"
fi
if [ ! -d "$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim" ]; then
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
~/.local/share/nvim/site/pack/packer/start/packer.nvim
fi
if [ ! -d "$HOME/.fzf-git.sh/" ]; then
git clone https://github.com/junegunn/fzf-git.sh.git $HOME/.fzf-git.sh
fi
ln -sf $HOME/src/env/bashrc $HOME/.bashrc_as
ln -sf $HOME/src/env/inputrc $HOME/.inputrc
ln -sf $HOME/src/env/zshrc $HOME/.zshrc
ln -sf $HOME/src/env/agxs.zsh-theme $HOME/.oh-my-zsh/themes/agxs.zsh-theme
ln -sf $HOME/src/env/agxs2.zsh-theme $HOME/.oh-my-zsh/themes/agxs2.zsh-theme
ln -sf $HOME/src/env/agxs3.zsh-theme $HOME/.oh-my-zsh/themes/agxs3.zsh-theme
ln -sf $HOME/src/env/agxs_kubernetes.zsh $HOME/.oh-my-zsh/lib/agxs_kubernetes.zsh
ln -sf $HOME/src/env/tmux.conf $HOME/.tmux.conf
ln -sf $HOME/src/env/ackrc $HOME/.ackrc
if [[ ! -d "$HOME/.config/nvim/" ]]; then
ln -sf $HOME/src/env/nvim $HOME/.config/nvim
fi
if [[ -d "$HOME/.irssi" ]]; then
ln -sf $HOME/src/env/solarized-universal.theme $HOME/.irssi/solarized-universal.theme
ln -sf $HOME/src/env/irssi_config $HOME/.irssi/config
fi
mkdir -p $HOME/.config/Code/User
ln -sf $HOME/src/env/settings.json $HOME/.config/Code/User/settings.json
ln -sf $HOME/src/env/starship.toml $HOME/.config/starship.toml
ln -sf $HOME/src/env/gitconfig $HOME/.gitconfig
ln -sf $HOME/src/env/gitconfig-personal $HOME/.gitconfig-personal
ln -sf $HOME/src/env/gitignore $HOME/.gitignore
ln -sf $HOME/src/env/ideavimrc $HOME/.ideavimrc
# remove stupid ubuntu overlay scrollbars
if [ -e "`which gsettings`" ]; then
gsettings set com.canonical.desktop.interface scrollbar-mode normal
fi
# Sets up gnome-terminal
if [ -e "`which gconftool-2`" ]; then
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_background" --type bool false
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/use_theme_colors" --type bool false
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/palette" --type string "#070736364242:#D3D301010202:#858599990000:#B5B589890000:#26268B8BD2D2:#D3D336368282:#2A2AA1A19898:#EEEEE8E8D5D5:#00002B2B3636:#CBCB4B4B1616:#58586E6E7575:#65657B7B8383:#838394949696:#6C6C7171C4C4:#9393A1A1A1A1:#FDFDF6F6E3E3"
# gconftool-2 --set "/apps/gnome-terminal/profiles/Default/background_color" --type string "#000000000000"
# gconftool-2 --set "/apps/gnome-terminal/profiles/Default/foreground_color" --type string "#838394949696"
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/background_color" --type string "#00002b2b3636"
gconftool-2 --set "/apps/gnome-terminal/profiles/Default/foreground_color" --type string "#838394949696"
fi
chmod -R g-w,o-w $HOME/.oh-my-zsh