Refactor zsh configuration

This commit is contained in:
George Rawlinson 2016-10-21 15:39:28 +13:00
parent 1cd5c0a495
commit 59bd65e7ca
3 changed files with 21 additions and 11 deletions

View File

@ -3,32 +3,40 @@
* oh-my-zsh. ([source][1])
* zsh-completions plugin. ([source][2])
Install & use zsh
## Install
### ZSH
`pacman -S 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`
Install zsh-completions plugin
### zsh-completions plugin
`git clone https://github.com/zsh-users/zsh-completions
~/.oh-my-zsh/custom/plugins/zsh-completions`
Create a symlink for `.zshrc`
## Configuration
`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`
`ln -s ~/.dotfiles/zsh/zlogin ~/.zlogin`
Add .zsh files to ~/.oh-my-zsh/custom
`ln -s ~/.dotfiles/zsh/alert.zsh ~/.oh-my-zsh/custom/alert.zsh`
Create a symlink for `ssh-agent.zsh`
`ln -s ~/.dotfiles/zsh/ssh-agent.zsh ~/.oh-my-zsh/custom/ssh-agent.zsh`

1
zsh/steam.zsh Normal file
View File

@ -0,0 +1 @@
export STEAM_FRAME_FORCE_CLOSE=1

View File

@ -4,8 +4,12 @@ export ZSH=$HOME/.oh-my-zsh
# Theme
ZSH_THEME="ys"
# Disable updates
DISABLE_UPDATE_PROMPT=true
DISABLE_AUTO_UPDATE=true
# 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
# ZSH-Completions
@ -14,8 +18,5 @@ autoload -U compinit && compinit
# User configuration
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