-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·49 lines (41 loc) · 1.22 KB
/
install.sh
File metadata and controls
executable file
·49 lines (41 loc) · 1.22 KB
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
#!/bin/bash
if [[ "$OSTYPE" == "linux"* ]]
then
echo "Installing tools"
sudo apt install -y vim-gtk3 git zsh ripgrep fzf curl tmux git
# install tmux plugin manager
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# make ctrl+tab change tab in gnome terminal
echo "Checking for gnome settings to update terminal controls:"
which gsettings && \
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ next-tab '<Primary>Tab' && \
gsettings set org.gnome.Terminal.Legacy.Keybindings:/org/gnome/terminal/legacy/keybindings/ prev-tab '<Primary><Shift>Tab'
elif [[ "$OSTYPE" == "darwin"* ]]
then
echo "To install apps etc, run brew install script in oxs folder"
fi
echo "Symlinking configs to home directory:"
configs=(
git
tmux
vim
zsh
bash
)
if [ ! -z $1 ] && [ $1 = "-f" ]
then
FORCE_LINK="-f"
echo FORCE LINKING
fi
for c in ${configs[@]}; do
ln -s $FORCE_LINK ~/unix-config/"$c"/.[!.]* ~
done
zsh zsh/.zim/zimfw.zsh install
if [ $SHELL != '/bin/zsh' ]
then
echo "Setting zsh as default shell"
echo "disabled for now"
#chsh -s $(which zsh)
fi
echo "To install vim plugins, open vim and run"
echo ":PlugInstall"