my minimal zshrc and bashrc with completion

Install grml-zsh-config from repository, if you don’t want it minimal.

More minimal version is posted in the following link.
https://tech.wildduck.xyz/post/minimal-zshrc/

## Aliases
alias ls='ls --color=auto'
alias vi='vim'
alias ssh='TERM=xterm-256color ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'

# Paths
export PATH=$PATH:~/bin

# Prompt
PROMPT=[%n@%m\ %c\]%(!.#.$)\

# History
HISTFILE=.zsh_history
HISTSIZE=1000
SAVEHIST=1000
setopt EXTENDED_HISTORY
setopt HIST_FIND_NO_DUPS
setopt INC_APPEND_HISTORY

# Keybind
# For the control code, open your terminal and press ctrl+v and press whatever key you want to assign.
# Keybind
bindkey '^[OC' forward-word
bindkey '^[Oc' forward-word
bindkey '^[[1;5C' forward-word
bindkey '^[OD' backward-word
bindkey '^[Od' backward-word
bindkey '^[[1;5D' backward-word
bindkey '^[[1~' beginning-of-line
bindkey '^[[7~' beginning-of-line
bindkey '^[OH' beginning-of-line
bindkey '\033[H' beginning-of-line
bindkey '^[[1;6D' beginning-of-line
bindkey '^[[8~' end-of-line
bindkey '^[[4~' end-of-line
bindkey '^[OF' end-of-line
bindkey '\033[F' end-of-line
bindkey '^[[1;6C' end-of-line
bindkey '^[[3~' delete-char

# Completion
autoload -Uz compinit
compinit
# Spelling correction
setopt correct
# Auto cd
setopt autocd

bashrc


# History
HISTTIMEFORMAT="%d/%m/%Y %T "

# Bash-completion options
shopt -s autocd
shopt -s cdspell
shopt -s extglob
shopt -s histappend
shopt -s lithist
shopt -s dotglob
shopt -s nocaseglob
shopt -s nocasematch

Advertisements
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: