mirror of
https://github.com/runyanjake/dotfiles.git
synced 2025-10-04 21:57:30 -07:00
Add ohmyzsh
This commit is contained in:
parent
f796a2ec2f
commit
e941d2fb05
29
ohmyzsh/README.md
Normal file
29
ohmyzsh/README.md
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# ohmyzsh
|
||||||
|
My ohmyzsh config.
|
||||||
|
|
||||||
|
## Prerequisites
|
||||||
|
1. Install zsh. It should come by default with MacOS, else get it thru homebrew.
|
||||||
|
```
|
||||||
|
sudo apt get install zsh
|
||||||
|
```
|
||||||
|
2. Set zsh as default shell
|
||||||
|
```
|
||||||
|
chsh -s /bin/zsh
|
||||||
|
```
|
||||||
|
|
||||||
|
## Installation
|
||||||
|
1. Install omz
|
||||||
|
```
|
||||||
|
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
|
||||||
|
```
|
||||||
|
2. Remove the generated zshrc and link the one in this repo as a replacement. Note the file in this repo isn't hidden.
|
||||||
|
```
|
||||||
|
rm ~/.zshrc
|
||||||
|
ln -sfn /path/to/dotfiles/ohmyzsh/zshrc ~/.zshrc
|
||||||
|
```
|
||||||
|
3. Source ~/.zshrc or restart the terminal.
|
||||||
|
```
|
||||||
|
source ~/.zshrc
|
||||||
|
```
|
||||||
|
|
||||||
|
|
9
ohmyzsh/zshrc
Normal file
9
ohmyzsh/zshrc
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
export ZSH="$HOME/.oh-my-zsh"
|
||||||
|
ZSH_THEME="robbyrussell"
|
||||||
|
|
||||||
|
zstyle ':omz:update' frequency 7
|
||||||
|
|
||||||
|
plugins=(git)
|
||||||
|
|
||||||
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user