File tree Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Expand file tree Collapse file tree 2 files changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ # Configure Oh My Zsh plugins
4
+
5
+ # Exit immediately if a command exits with a non-zero status
6
+ set -e
7
+
8
+ # Store a local variable of the scripts current directory
9
+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
10
+
11
+ if [[ -f " ~/.zshrc" ]]; then
12
+ sed -i -e ' s/plugins=(git)/plugins=(git mvn nvm z)/g' ~ /.zshrc
13
+ else
14
+ echo " ==> .zshrc not found, Oh My Zsh possibly not installed. Aborting."
15
+ exit 1
16
+ fi
Original file line number Diff line number Diff line change
1
+ #! /bin/sh
2
+
3
+ # Install updated ZSH and Oh My Zsh
4
+
5
+ # Exit immediately if a command exits with a non-zero status
6
+ set -e
7
+
8
+ # Store a local variable of the scripts current directory
9
+ DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd ) "
10
+
11
+ if ! command -v " brew" > /dev/null 2>&1 ; then
12
+ echo " ==> Homebrew not found. Installing now..."
13
+ ${DIV} /brew.sh
14
+ fi
15
+
16
+ if command -v " brew" > /dev/null 2>&1 ; then
17
+ echo " ==> Installing updated ZSH..."
18
+ brew install zsh zsh-completions
19
+ echo " ==> Updated ZSH installed."
20
+
21
+ echo " export EDITOR=nano" >> ~ /.zlogin
22
+ echo " \n" >> ~ /.zlogin
23
+
24
+ echo " ==> Installing Oh My Zsh..."
25
+ sh -c " $( curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh) "
26
+ fi
You can’t perform that action at this time.
0 commit comments