Add setup file
This commit is contained in:
parent
99a8900968
commit
a427fbbfdd
2 changed files with 18 additions and 2 deletions
9
.zshrc
9
.zshrc
|
@ -1,5 +1,11 @@
|
|||
export ZSH="/home/digyx/.oh-my-zsh"
|
||||
if [[ "$(uname)" == "Darwin" ]]; then
|
||||
export ZSH="/Users/$(whoami)/.oh-my-zsh"
|
||||
elif [[ "$(expr substr $(uname -s) 1 5)" == "Linux" ]]; then
|
||||
export ZSH="/home/$(whoami)/.oh-my-zsh"
|
||||
fi
|
||||
|
||||
ZSH_THEME="robbyrussell"
|
||||
ZSH_DISABLE_COMPFIX="true"
|
||||
|
||||
plugins=(
|
||||
git
|
||||
|
@ -20,4 +26,3 @@ plugins=(
|
|||
)
|
||||
|
||||
source $ZSH/oh-my-zsh.sh
|
||||
|
||||
|
|
11
setup.sh
Executable file
11
setup.sh
Executable file
|
@ -0,0 +1,11 @@
|
|||
# Install ohmyzsh
|
||||
sudo sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||
sudo chown -R $(whoami) ~/.oh-my-zsh ~/.zshrc
|
||||
|
||||
# Install thefuck, zsh-suggestion
|
||||
sudo python3 -m pip install thefuck
|
||||
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
|
||||
|
||||
# Copy .zshrc file, setup z
|
||||
cp .zshrc ~/.zshrc
|
||||
touch ~/.z
|
Loading…
Reference in a new issue