dotwryn/zsh/rc

68 lines
1.7 KiB
Plaintext
Raw Normal View History

2019-12-02 17:16:05 +00:00
#!/bin/zsh
2020-09-17 03:06:44 +00:00
#
#
# The following lines were added by compinstall
zstyle ':completion:*' completer _complete _ignored _approximate
zstyle ':completion:*' max-errors 4
zstyle :compinstall filename '/home/w0ryn/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt appendhistory autocd beep notify
unsetopt nomatch
bindkey -v
# End of lines configured by zsh-newuser-install
zmodload -i zsh/complist;
bindkey -M menuselect '^M' .accept-line;
# Completion for Kitty
2020-09-22 23:37:17 +00:00
which kitty >/dev/null && kitty + complete setup zsh | source /dev/stdin
2020-09-17 03:06:44 +00:00
#
#
2020-01-08 19:40:53 +00:00
source "$HOME/.wryn/env/env.zsh"
2019-12-02 17:16:05 +00:00
RC_DIR="$DOTWRYN/zsh"
# source .wryn/zsh files
for file in $(find $RC_DIR -maxdepth 1 -type f ! -name 'rc'); do source $file; done;
# osx
if [[ "$OSTYPE" == "darwin"* ]]; then
for file in $(find $RC_DIR/osx -type f); do source $file; done;
fi
# linux
if [[ "$OSTYPE" == "linux-gnu" ]]; then
for file in $(find $RC_DIR/linux -type f); do source $file; done;
fi
# --- ViM as default editor -----------------------------------
export EDITOR='vim'
export VISUAL='vim'
# --- Welcome message -----------------------------------------
exec figlet "Welcome, beautiful" | lolcat; echo; cowsay -p "damn u sexy" | lolcat;
alias restart='clear; source ~/.zshrc; echo'
# --- !@#$ Aliases --------------------------------------------
alias clera='clear';
alias sl='sl -alF | lolcat';
2020-03-18 17:25:55 +00:00
# --- ZSH Completion Styles -----------------------------------
zmodload -i zsh/complist;
zstyle ':completion:*' menu select;
bindkey -M menuselect '^M' .accept-line; # don't require 'return' to select menu item