My initial config

This commit is contained in:
Jiří Štefka 2020-06-07 16:09:57 +02:00
parent 95e8efa25c
commit 40b4b2abd4
3 changed files with 23 additions and 16 deletions

7
.zshrc
View file

@ -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 "
# Custom Variables
EDITOR=vim
EDITOR=nano
# Pure Prompt
fpath+=$HOME/zsh/pure
autoload -U promptinit; promptinit
prompt pure
PURE_PROMPT_SYMBOL=\$
PURE_PROMPT_VICMD_SYMBOL=\<
# History in cache directory:
HISTSIZE=10000
@ -34,6 +36,9 @@ _comp_options+=(globdots) # Include hidden files.
# Custom ZSH Binds
bindkey '^ ' autosuggest-accept
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^[[3~" delete-char
# Load aliases and shortcuts if existent.
[ -f "$HOME/zsh/aliasrc" ] && source "$HOME/zsh/aliasrc"

View file

@ -1,14 +1,21 @@
# zsh
My ZSH Config
# ZSH
My ZSH config
## Setup
```
git clone --recursive https://github.com/ChrisTitusTech/zsh
git clone --recursive https://github.com/jiriks74/zsh
ln -s -f ~/zsh/.zshrc ~/.zshrc
```
## Get Dependancies
- zsh-syntax-highlighting - syntax highlighting for ZSH in standard repos
- autojump - jump to directories with j or jc for child or jo to open in file manager
## Get Dependancies
- 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
Finish the conversion by changing your user in /etc/passwd to /bin/zsh instead of /bin/bash
- zsh - the shell itself
- 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.

View file

@ -23,9 +23,9 @@ ex ()
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 ll='ls -l'
@ -74,8 +74,3 @@ alias unexport='unset'
alias rm='rm -i'
alias cp='cp -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'