-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.bash
executable file
·45 lines (42 loc) · 1.03 KB
/
install.bash
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/bash
[ ! -h "~/.bashrc" ] && mv ~/.bashrc ~/.bashrc.orig
ln -s ~/Dotfiles/vimrc ~/.vimrc
ln -s ~/Dotfiles/vim ~/.vim
ln -s ~/Dotfiles/bashrc ~/.bashrc
ln -s ~/Dotfiles/screenrc ~/.screenrc
ln -s ~/Dotfiles/inputrc ~/.inputrc
ln -s ~/Dotfiles/gitconfig ~/.gitconfig
ln -s ~/Dotfiles/cshrc ~/.cshrc
ln -s ~/Dotfiles/complete ~/.complete
ln -s ~/Dotfiles/tmux ~/.tmux
ln -s ~/Dotfiles/tmux.conf ~/.tmux.conf
# Irssi
mkdir -p ~/.irssi/
ln -s ~/Dotfiles/irssi/config ~/.irssi/config
# SSH
mkdir -p ~/.ssh/
ln -s ~/Dotfiles/ssh/config ~/.ssh/config
# Create English symlinks for easy navigation
if [ "$LANGUAGE" == 'zh_TW:zh' ]; then
if [ -d '~/公共' ]; then
ln -s ~/公共 ~/Public
fi
if [ -d '~/圖片' ]; then
ln -s ~/圖片 ~/Pictures
fi
if [ -d '~/下載' ]; then
ln -s ~/下載 ~/Downloads
fi
if [ -d '~/文件' ]; then
ln -s ~/文件 ~/Documents
fi
if [ -d '~/音樂' ]; then
ln -s ~/音樂 ~/Music
fi
if [ -d '~/影片' ]; then
ln -s ~/影片 ~/Videos
fi
if [ -d '~/桌面' ]; then
ln -s ~/桌面 ~/Desktop
fi
fi