dotfiles/system/.config/zsh/.zshrc
Severin Kaderli b4b02847dd
Separate wallpaper and lockscreen by host
Signed-off-by: Severin Kaderli <severin@kaderli.dev>
2019-04-23 22:52:04 +02:00

57 lines
1.2 KiB
Bash

#!/bin/bash
#
# SCRIPT NAME:
# .zshrc
#
# AUTHOR:
# Severin Kaderli <severin@kaderli.dev>
#
# DESCRIPTION:
# This script is called when you start a new shell.
#
# USAGE:
# This script is automatically executed when you start a new shell.
# Zsh options
setopt prompt_subst
unsetopt correct
# Zsh keybindings
bindkey "\e[H" beginning-of-line
bindkey "\e[F" end-of-line
bindkey "\e[5~" beginning-of-history
bindkey "\e[6~" end-of-history
bindkey "\e[3~" delete-char
bindkey "\e[2~" quoted-insert
bindkey "\e[5C" forward-word
bindkey "\eOc" emacs-forward-word
bindkey "\e[5D" backward-word
bindkey "\eOd" emacs-backward-word
bindkey "\ee[C" forward-word
bindkey "\ee[D" backward-word
bindkey "^H" backward-delete-word
# Enable autocompletion features
autoload -Uz compinit
compinit
zstyle ':completion:*' menu select
# Persistent rehash
zstyle ':completion:*' rehash true
# Sourcing environment variables
if [ -f "${HOME}/.config/custom/env" ]; then
. "${HOME}/.config/custom/env"
fi
# Enable color support of ls
if [ -f "${XDG_CONFIG_HOME}/custom/dircolors" ]; then
dircolors -b "${XDG_CONFIG_HOME}/custom/dircolors" > /dev/null 2>&1
fi
# Sourcing alias definitions
if [ -f "${XDG_CONFIG_HOME}/custom/aliases" ]; then
. "${XDG_CONFIG_HOME}/custom/aliases"
fi