summaryrefslogtreecommitdiff
path: root/.config/zsh
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2021-11-06 20:25:45 -0400
committerSam Chudnick <sam@chudnick.com>2021-11-06 20:25:45 -0400
commit82df70eff06e7b44ee84283070d7f801f7fc1d92 (patch)
treed17ea9cc6e012b16ff0cdeffcf4a97b5e5cd2d11 /.config/zsh
initial commit
Diffstat (limited to '.config/zsh')
-rw-r--r--.config/zsh/.zprofile19
-rw-r--r--.config/zsh/.zshrc33
2 files changed, 52 insertions, 0 deletions
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 @@
1#!/bin/zsh
2# Profile file - executed by login shells
3
4export 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
5export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01'
6export LESSHISTFILE='-'
7export XDG_CACHE_HOME="$HOME/.cache"
8export XDG_CONFIG_HOME="$HOME/.config"
9export XDG_DATA_HOME="$HOME/.local/share"
10export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc"
11export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
12export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
13
14export BROWSER="firefox"
15export EDITOR="vim"
16export TERMINAL="urxvtc"
17
18eval `ssh-agent -s`
19[ "$(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 @@
1# Source aliases and shortcuts
2source ~/.config/shell/aliasrc
3source ~/.config/shell/shortcutsrc
4
5# History file settings
6HISTSIZE=100000000
7SAVEHIST=100000000
8HISTFILE="$HOME/.cache/zsh/history"
9
10# Shell options
11bindkey -v
12export KEYTIMEOUT=1
13setopt autocd
14stty stop undef
15setopt histappend
16
17# Prompt
18autoload -U colors && colors
19PS1="%B%{$fg[black]%}[%b%{$fg[yellow]%}%n%B%{$fg[black]%}-at-%b%{$fg[yellow]%}%M%B%{$fg[black]%}]%b%{$fg[red]%}%1~%{$reset_color%}$ "
20
21# Autocomplete Settings
22autoload -U compinit
23zstyle ":completion:*" menu select
24zmodload zsh/complist
25compinit
26_comp_options+=(globdots)
27# Vim keys in menu select
28bindkey -M menuselect 'h' vi-backward-char
29bindkey -M menuselect 'k' vi-up-line-or-history
30bindkey -M menuselect 'l' vi-forward-char
31bindkey -M menuselect 'j' vi-down-line-or-history
32
33source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null