-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
update.sh
executable file
Β·46 lines (35 loc) Β· 1.46 KB
/
update.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
#!/bin/bash
# bash script to update the files here
# this script is run from the root of the repo
# update the fish config
fish_dir=$HOME/.config/fish
cp -v $fish_dir/config.fish ./fish/config.fish
cp -v $fish_dir/functions/fish_prompt.fish ./fish/functions/fish_prompt.fish
cp -v $fish_dir/functions/fish_greeting.fish ./fish/functions/fish_greeting.fish
cp -v $fish_dir/functions/fish_prompt_loading_indicator.fish ./fish/functions/fish_prompt_loading_indicator.fish
cp -v $fish_dir/conf.d/abbr.fish ./fish/conf.d/abbr.fish
cp -v $fish_dir/conf.d/alias.fish ./fish/conf.d/alias.fish
# update fisher, using fish -c to run the command from fish shell instead of bash
fish -c "fisher list | grep -v "jorgebucaran/fisher" > './fisher/fisher install.list'"
# update git config
cp -v $HOME/.gitconfig ./git/.gitconfig
cp -v $HOME/.gitignore_global ./git/.gitignore_global
# copy ssh config
cp -v $HOME/.ssh/config ./ssh/config
# gnupg config
gnupg_dir=$HOME/.gnupg
cp -v $gnupg_dir/gpg.conf ./gnupg/gpg.conf
cp -v $gnupg_dir/gpg-agent.conf ./gnupg/gpg-agent.conf
# update the neofetch config
neofetch_dir=$HOME/.config/neofetch
cp -v $neofetch_dir/config.conf ./neofetch/config.conf
# packages
# dump new brewfile
brew bundle dump --force --describe --file=./packages/Brewfile
echo "brew bundle dump complete"
# starship
cp -v $HOME/.config/starship.toml ./starship/starship.toml
# micro
cp -v $HOME/.config/micro/*.json ./micro/
# Echo that the script is done
echo "Update script complete"