-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathdotfetch
executable file
·45 lines (42 loc) · 1.02 KB
/
dotfetch
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
#******************************************************************************
#
# * File: dotfetch
#
# * Author: Umut Sevdi
# * Created: 08/20/22
# * Description: A script that updates the configuration files and restarts
# the i3wm
#*****************************************************************************
Help()
{
# Display Help
echo "dotfetch - Dotfile Fetcher"
echo " Updates config files and restarts the window manager"
echo
echo "Syntax: [-r]"
echo
echo "Options:"
echo "-h/--help Prints this menu."
echo "-r/--root Also updates root user's .bashrc"
echo
}
Fetch()
{
cp -r $HOME/.dotfiles/bookmarks $HOME/.config/gtk-3.0/
cp -r $HOME/.dotfiles/bashrc $HOME/.bashrc
source $HOME/.bashrc
colorscheme -r
}
for arg in $@;do
if [ $arg = -h ] || [ $arg = --help ]; then
Help
exit
elif [ $arg = -r ] || [ $arg = --root ]; then
root=true
else
echo -e "Error: Invalid arguments" 1>&2
exit
fi
done
Fetch