Refactor zsh configuration
This commit is contained in:
parent
1cd5c0a495
commit
59bd65e7ca
3 changed files with 21 additions and 11 deletions
|
@ -3,32 +3,40 @@
|
||||||
* oh-my-zsh. ([source][1])
|
* oh-my-zsh. ([source][1])
|
||||||
* zsh-completions plugin. ([source][2])
|
* zsh-completions plugin. ([source][2])
|
||||||
|
|
||||||
Install & use zsh
|
## Install
|
||||||
|
|
||||||
|
### ZSH
|
||||||
|
|
||||||
`pacman -S zsh`
|
`pacman -S zsh`
|
||||||
|
|
||||||
`chsh -s /bin/zsh`
|
`chsh -s /bin/zsh`
|
||||||
|
|
||||||
Install oh-my-zsh
|
### oh-my-zsh
|
||||||
|
|
||||||
`git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh`
|
`git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh`
|
||||||
|
|
||||||
Install zsh-completions plugin
|
### zsh-completions plugin
|
||||||
|
|
||||||
`git clone https://github.com/zsh-users/zsh-completions
|
`git clone https://github.com/zsh-users/zsh-completions
|
||||||
~/.oh-my-zsh/custom/plugins/zsh-completions`
|
~/.oh-my-zsh/custom/plugins/zsh-completions`
|
||||||
|
|
||||||
Create a symlink for `.zshrc`
|
## Configuration
|
||||||
|
|
||||||
`ln -s ~/.dotfiles/zsh/zshrc ~/.zshrc`
|
`ln -s ~/.dotfiles/zsh/zshrc ~/.zshrc`
|
||||||
|
|
||||||
|
### Custom ZSH config
|
||||||
|
|
||||||
|
`ln -s ~/.dotfiles/zsh/alert.zsh ~/.oh-my-zsh/custom/alert.zsh`
|
||||||
|
|
||||||
|
`ln -s ~/.dotfiles/zsh/steam.zsh ~/.oh-my-zsh/custom/steam.zsh`
|
||||||
|
|
||||||
|
## Obsolete
|
||||||
|
|
||||||
Create a symlink for `.zlogin`
|
Create a symlink for `.zlogin`
|
||||||
|
|
||||||
`ln -s ~/.dotfiles/zsh/zlogin ~/.zlogin`
|
`ln -s ~/.dotfiles/zsh/zlogin ~/.zlogin`
|
||||||
|
|
||||||
Add .zsh files to ~/.oh-my-zsh/custom
|
Create a symlink for `ssh-agent.zsh`
|
||||||
|
|
||||||
`ln -s ~/.dotfiles/zsh/alert.zsh ~/.oh-my-zsh/custom/alert.zsh`
|
|
||||||
|
|
||||||
`ln -s ~/.dotfiles/zsh/ssh-agent.zsh ~/.oh-my-zsh/custom/ssh-agent.zsh`
|
`ln -s ~/.dotfiles/zsh/ssh-agent.zsh ~/.oh-my-zsh/custom/ssh-agent.zsh`
|
||||||
|
|
||||||
|
|
1
zsh/steam.zsh
Normal file
1
zsh/steam.zsh
Normal file
|
@ -0,0 +1 @@
|
||||||
|
export STEAM_FRAME_FORCE_CLOSE=1
|
|
@ -4,8 +4,12 @@ export ZSH=$HOME/.oh-my-zsh
|
||||||
# Theme
|
# Theme
|
||||||
ZSH_THEME="ys"
|
ZSH_THEME="ys"
|
||||||
|
|
||||||
|
# Disable updates
|
||||||
|
DISABLE_UPDATE_PROMPT=true
|
||||||
|
DISABLE_AUTO_UPDATE=true
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
plugins=(archlinux common-aliases git sudo web-search ssh-agent)
|
plugins=(archlinux common-aliases git sudo web-search ssh-agent rust)
|
||||||
# look into node/npm
|
# look into node/npm
|
||||||
|
|
||||||
# ZSH-Completions
|
# ZSH-Completions
|
||||||
|
@ -14,8 +18,5 @@ autoload -U compinit && compinit
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
export PATH=$HOME/bin:/usr/local/bin:$PATH
|
export PATH=$HOME/bin:/usr/local/bin:$PATH
|
||||||
# export MANPATH="/usr/local/man:$MANPATH"
|
|
||||||
|
|
||||||
export EDITOR=/usr/bin/vim
|
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
Loading…
Reference in a new issue