Skip to content

Commit 25a6cba

Browse files
authored
Updated zsh config
1 parent 6d223c2 commit 25a6cba

File tree

1 file changed

+21
-25
lines changed

1 file changed

+21
-25
lines changed

content/environment/zsh.md

+21-25
Original file line numberDiff line numberDiff line change
@@ -30,39 +30,35 @@ These are some ZSH settings I've found to be helpful.
3030
See the [bashrc](environment/bashrc) page for more useful settings.
3131

3232
```bash
33-
# Path to oh-my-zsh
34-
export ZSH=/Users/crux/.oh-my-zsh
33+
# If you come from bash you might have to change your $PATH.
34+
# export PATH=$HOME/bin:/usr/local/bin:$PATH
3535

36-
# How often to auto-update (in days).
36+
export ZSH="/home/jinx/.oh-my-zsh"
3737
export UPDATE_ZSH_DAYS=7
3838

39-
# Command auto-correction
40-
ENABLE_CORRECTION="true"
41-
42-
# User configuration
43-
source /usr/local/share/antigen/antigen.zsh
39+
source $ZSH/oh-my-zsh.sh
4440

45-
# Set up antigen
46-
antigen use oh-my-zsh
41+
ZSH_THEME="agnoster"
42+
ENABLE_CORRECTION="true"
43+
# DISABLE_MAGIC_FUNCTIONS=true
44+
# COMPLETION_WAITING_DOTS="true"
4745

48-
# Bundle install
49-
antigen bundle git
50-
antigen bundle git-extras
51-
antigen bundle pip
52-
antigen bundle brew
53-
antigen bundle python
54-
antigen bundle zlsun/solarized-man
55-
antigen bundle command-not-found
56-
antigen bundle pylint
46+
plugins=(git)
5747

58-
# Load a theme
59-
antigen theme KuoE0/oh-my-zsh-solarized-powerline-theme solarized-powerline
48+
# Aliases
49+
alias ohmyzsh="code ~/.oh-my-zsh"
50+
alias ua="sudo apt-get update && sudo apt-get upgrade -y && sudo apt-get autoremove -y && sudo apt-get autoclean -y"
51+
alias updatethefuck="pip3 install thefuck --upgrade"
6052

61-
# Tell antigen you're done
62-
antigen apply
53+
# The fuck
54+
eval $(thefuck --alias)
6355

64-
# Syntax highlighting
65-
source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
56+
# Preferred editor for local and remote sessions
57+
# if [[ -n $SSH_CONNECTION ]]; then
58+
# export EDITOR='vim'
59+
# else
60+
# export EDITOR='mvim'
61+
# fi
6662
```
6763

6864
## Caveats

0 commit comments

Comments
 (0)