diff --git a/.zshrc b/.zshrc index 8a87b84..c073088 100644 --- a/.zshrc +++ b/.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 " # 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" diff --git a/README.md b/README.md index 56350bb..9d530a2 100644 --- a/README.md +++ b/README.md @@ -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. diff --git a/aliasrc b/aliasrc index c8176ab..0ecfc5a 100644 --- a/aliasrc +++ b/aliasrc @@ -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' -