-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-profile
executable file
·32 lines (26 loc) · 1000 Bytes
/
install-profile
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
#!/bin/sh
# simplify git command for working with my dotfiles
function config {
git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@
}
# if my dotfile repo hasn't been cloned, then do that
[[ ! -e $HOME/.dotfiles ]] && \
git clone --bare [email protected]:bradyslot/dotfiles.git $HOME/.dotfiles
# I only care about files I've added myself
config config status.showUntrackedFiles no
# clone my forks
[[ ! -e $HOME/src ]] && mkdir $HOME/src
cd $HOME/src
git clone [email protected]:bradyslot/dwm.git
git clone [email protected]:bradyslot/dmenu.git
git clone [email protected]:bradyslot/dwmblocks.git
# build and install my forks
cd dwm; sudo make clean install; cd ..
cd dmenu; sudo make clean install; cd ..
cd dwmblocks; sudo make clean install; cd ..
cd $HOME
echo "Use the 'config' command in place of 'git' to manage your .dotfiles"
echo "The following is an example of fetching the desktop branch."
echo "config checkout desktop"
echo "config fetch origin"
echo "config reset --hard origin/desktop"