My initial config
This commit is contained in:
parent
95e8efa25c
commit
40b4b2abd4
3 changed files with 23 additions and 16 deletions
7
.zshrc
7
.zshrc
|
@ -13,12 +13,14 @@ autoload -U colors && colors
|
||||||
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
|
PS1="%B%{$fg[red]%}[%{$fg[yellow]%}%n%{$fg[green]%}@%{$fg[blue]%}%M %{$fg[magenta]%}%~%{$fg[red]%}]%{$reset_color%}$%b "
|
||||||
|
|
||||||
# Custom Variables
|
# Custom Variables
|
||||||
EDITOR=vim
|
EDITOR=nano
|
||||||
|
|
||||||
# Pure Prompt
|
# Pure Prompt
|
||||||
fpath+=$HOME/zsh/pure
|
fpath+=$HOME/zsh/pure
|
||||||
autoload -U promptinit; promptinit
|
autoload -U promptinit; promptinit
|
||||||
prompt pure
|
prompt pure
|
||||||
|
PURE_PROMPT_SYMBOL=\$
|
||||||
|
PURE_PROMPT_VICMD_SYMBOL=\<
|
||||||
|
|
||||||
# History in cache directory:
|
# History in cache directory:
|
||||||
HISTSIZE=10000
|
HISTSIZE=10000
|
||||||
|
@ -34,6 +36,9 @@ _comp_options+=(globdots) # Include hidden files.
|
||||||
|
|
||||||
# Custom ZSH Binds
|
# Custom ZSH Binds
|
||||||
bindkey '^ ' autosuggest-accept
|
bindkey '^ ' autosuggest-accept
|
||||||
|
bindkey "^[[H" beginning-of-line
|
||||||
|
bindkey "^[[F" end-of-line
|
||||||
|
bindkey "^[[3~" delete-char
|
||||||
|
|
||||||
# Load aliases and shortcuts if existent.
|
# Load aliases and shortcuts if existent.
|
||||||
[ -f "$HOME/zsh/aliasrc" ] && source "$HOME/zsh/aliasrc"
|
[ -f "$HOME/zsh/aliasrc" ] && source "$HOME/zsh/aliasrc"
|
||||||
|
|
23
README.md
23
README.md
|
@ -1,14 +1,21 @@
|
||||||
# zsh
|
# ZSH
|
||||||
My ZSH Config
|
My ZSH config
|
||||||
|
|
||||||
## Setup
|
## Setup
|
||||||
```
|
```
|
||||||
git clone --recursive https://github.com/ChrisTitusTech/zsh
|
git clone --recursive https://github.com/jiriks74/zsh
|
||||||
ln -s -f ~/zsh/.zshrc ~/.zshrc
|
ln -s -f ~/zsh/.zshrc ~/.zshrc
|
||||||
```
|
```
|
||||||
## Get Dependancies
|
|
||||||
- zsh-syntax-highlighting - syntax highlighting for ZSH in standard repos
|
## Get Dependancies
|
||||||
- autojump - jump to directories with j or jc for child or jo to open in file manager
|
- zsh-syntax-highlighting - syntax highlighting for ZSH
|
||||||
|
- autojump - jump to directories with j or jc for child or jo to open in file manager (ARCH - install via AUR)
|
||||||
- zsh-autosuggestions - Suggestions based on your history
|
- zsh-autosuggestions - Suggestions based on your history
|
||||||
|
- zsh - the shell itself
|
||||||
Finish the conversion by changing your user in /etc/passwd to /bin/zsh instead of /bin/bash
|
- pure - Should download with my setup (Just in case - `git clone https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"`)
|
||||||
|
|
||||||
|
## Set as default
|
||||||
|
To set zsh as default shell for your user, edit `/etc/passwd` (from `/bin/bash` to `/bin/zsh`)
|
||||||
|
|
||||||
|
## What I used
|
||||||
|
My config is based on Chris Titus's config and pure shell.
|
||||||
|
|
9
aliasrc
9
aliasrc
|
@ -23,9 +23,9 @@ ex ()
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
export EDITOR=vim
|
export EDITOR=nano
|
||||||
|
|
||||||
alias pacman-update='sudo pacman-mirrors --geoip'
|
alias pacman-update='sudo reflector -c "CZ" -f 12 -l 10 -n 12 --save /etc/pacman.d/mirrorlist'
|
||||||
|
|
||||||
alias ls='ls --color=auto'
|
alias ls='ls --color=auto'
|
||||||
alias ll='ls -l'
|
alias ll='ls -l'
|
||||||
|
@ -74,8 +74,3 @@ alias unexport='unset'
|
||||||
alias rm='rm -i'
|
alias rm='rm -i'
|
||||||
alias cp='cp -i'
|
alias cp='cp -i'
|
||||||
alias mv='mv -i'
|
alias mv='mv -i'
|
||||||
alias vim='vim'
|
|
||||||
alias vi='vim'
|
|
||||||
alias gds-start='sudo systemctl start openvpn-client@gds'
|
|
||||||
alias gds-stop='sudo systemctl stop openvpn-client@gds'
|
|
||||||
|
|
||||||
|
|
Reference in a new issue