-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·40 lines (31 loc) · 1.87 KB
/
install.sh
File metadata and controls
executable file
·40 lines (31 loc) · 1.87 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
#!/bin/bash
set -o errexit -o nounset -o pipefail
SCRIPT_PATH="$(dirname $(readlink -f "$0"))"
if [[ $1 = zshrc || $1 = zsh ]]; then
echo '#This file was generated from dotfiles' > ~/.zshrc
echo '#All changes made here will be overwritten on update' >> ~/.zshrc
cat "$SCRIPT_PATH"/zsh/other.zsh >> ~/.zshrc
echo '# history setup --------------------------------------------------------' >> ~/.zshrc
cat "$SCRIPT_PATH"/zsh/history.zsh >> ~/.zshrc
echo '# ----------------------------------------------------------------------' >> ~/.zshrc
echo '' >> ~/.zshrc
echo '# key bindings ---------------------------------------------------------' >> ~/.zshrc
cat "$SCRIPT_PATH"/zsh/key_bindings.zsh >> ~/.zshrc
echo '# ----------------------------------------------------------------------' >> ~/.zshrc
echo '' >> ~/.zshrc
echo '# prompt setup ---------------------------------------------------------' >> ~/.zshrc
cat "$SCRIPT_PATH"/zsh/prompt.zsh >> ~/.zshrc
echo '# ----------------------------------------------------------------------' >> ~/.zshrc
echo '' >> ~/.zshrc
echo '# window title setup ---------------------------------------------------' >> ~/.zshrc
cat "$SCRIPT_PATH"/zsh/window_title.zsh >> ~/.zshrc
echo '# ----------------------------------------------------------------------' >> ~/.zshrc
echo '' >> ~/.zshrc
echo '# aliases --------------------------------------------------------------' >> ~/.zshrc
cat "$SCRIPT_PATH"/zsh/aliases.zsh >> ~/.zshrc
echo '# ----------------------------------------------------------------------' >> ~/.zshrc
echo '' >> ~/.zshrc
echo '# functions setup ------------------------------------------------------' >> ~/.zshrc
cat "$SCRIPT_PATH"/zsh/functions.zsh >> ~/.zshrc
echo '# ----------------------------------------------------------------------' >> ~/.zshrc
fi