From 82df70eff06e7b44ee84283070d7f801f7fc1d92 Mon Sep 17 00:00:00 2001 From: Sam Chudnick Date: Sat, 6 Nov 2021 20:25:45 -0400 Subject: initial commit --- .config/zsh/.zprofile | 19 +++++++++++++++++++ .config/zsh/.zshrc | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .config/zsh/.zprofile create mode 100644 .config/zsh/.zshrc (limited to '.config/zsh') diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile new file mode 100644 index 0000000..59a6032 --- /dev/null +++ b/.config/zsh/.zprofile @@ -0,0 +1,19 @@ +#!/bin/zsh +# Profile file - executed by login shells + +export PATH=$PATH:~/.local/bin:~/.local/bin/cryptusb:~/.local/bin/private:~/.local/bin/statusbar:~/.local/bin/theme:~/.local/bin/cmus:~/.local/bin/dmenu:~/.local/bin/backups:~/.local/bin/backups/borg +export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' +export LESSHISTFILE='-' +export XDG_CACHE_HOME="$HOME/.cache" +export XDG_CONFIG_HOME="$HOME/.config" +export XDG_DATA_HOME="$HOME/.local/share" +export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc" +export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc" +export ZDOTDIR="$XDG_CONFIG_HOME/zsh" + +export BROWSER="firefox" +export EDITOR="vim" +export TERMINAL="urxvtc" + +eval `ssh-agent -s` +[ "$(tty)" = "/dev/tty1" ] && startx "$XINITRC" diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc new file mode 100644 index 0000000..30e3f64 --- /dev/null +++ b/.config/zsh/.zshrc @@ -0,0 +1,33 @@ +# Source aliases and shortcuts +source ~/.config/shell/aliasrc +source ~/.config/shell/shortcutsrc + +# History file settings +HISTSIZE=100000000 +SAVEHIST=100000000 +HISTFILE="$HOME/.cache/zsh/history" + +# Shell options +bindkey -v +export KEYTIMEOUT=1 +setopt autocd +stty stop undef +setopt histappend + +# Prompt +autoload -U colors && colors +PS1="%B%{$fg[black]%}[%b%{$fg[yellow]%}%n%B%{$fg[black]%}-at-%b%{$fg[yellow]%}%M%B%{$fg[black]%}]%b%{$fg[red]%}%1~%{$reset_color%}$ " + +# Autocomplete Settings +autoload -U compinit +zstyle ":completion:*" menu select +zmodload zsh/complist +compinit +_comp_options+=(globdots) +# Vim keys in menu select +bindkey -M menuselect 'h' vi-backward-char +bindkey -M menuselect 'k' vi-up-line-or-history +bindkey -M menuselect 'l' vi-forward-char +bindkey -M menuselect 'j' vi-down-line-or-history + +source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null -- cgit v1.2.3