This commit is contained in:
Chen Asraf
2021-01-27 11:14:43 +02:00
parent dfff1d841e
commit 34a8f7d252
6 changed files with 24 additions and 10 deletions

8
.zshrc
View File

@@ -1,4 +1,4 @@
source ./exports.sh # must run before zsh_init
source ./zsh_init.sh
source ./aliases.sh
source ./sources.sh
source $HOME/.dotfiles/exports.sh # must run before zsh_init
source $HOME/.dotfiles/zsh_init.sh
source $HOME/.dotfiles/aliases.sh
source $HOME/.dotfiles/sources.sh

View File

@@ -1,16 +1,28 @@
# .dotfiles
1. Install [Oh-My-Zsh](https://github.com/ohmyzsh/ohmyzsh)
2. Install plugins:
2. Clone this repository into `~/.dotfiles`:
```bash
git clone git@github.com:chenasraf/dotfiles.git ~/.dotfiles
```
3. Install plugins:
1. [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions/blob/master/INSTALL.md#oh-my-zsh)
2. [zsh-syntax-highlighting](https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/INSTALL.md#oh-my-zsh)
3. Replace contents of `~/.zshrc` with:
4. Install fzf:
```bash
brew install fzf
```
5. Replace entire contents of `~/.zshrc` with:
```bash
source "$HOME/.dotfiles/.zshrc"
```
4. Reload zsh:
6. Reload zsh:
```bash
source ~/.zshrc

0
aliases.sh Normal file → Executable file
View File

4
exports.sh Normal file → Executable file
View File

@@ -5,4 +5,6 @@ export PATH="$PATH:$HOME/.flutter-src/bin"
export PATH="$PATH:$HOME/.pub-cache/bin"
# Path to your oh-my-zsh installation.
export ZSH="/Users/chen/.oh-my-zsh"
export ZSH="$HOME/.oh-my-zsh"
export DOTFILES="$HOME/.dotfiles"

4
sources.sh Normal file → Executable file
View File

@@ -1,4 +1,4 @@
#!/usr/bin/env bash
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
[ -f /opt/homebrew/opt/chruby/share/chruby/chruby.sh ] && source /opt/homebrew/opt/chruby/share/chruby/chruby.sh
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh || :
[ -f /opt/homebrew/opt/chruby/share/chruby/chruby.sh ] && source /opt/homebrew/opt/chruby/share/chruby/chruby.sh || :

0
zsh_init.sh Normal file → Executable file
View File