-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
44 lines (37 loc) · 868 Bytes
/
.zshrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/zsh
#
# Enable colors and change prompt:
autoload -U colors && colors # Load colors
setopt autocd # Automatically cd into typed directory.
setopt interactive_comments
# History in cache directory:
HISTSIZE=1000
SAVEHIST=1000
HISTFILE="$HOME"/.history
export SAVEHIST=$HISTSIZE
# Basic auto/tab complete:
autoload -U compinit
zstyle ':completion:*' menu select
zmodload zsh/complist
compinit
_comp_options+=(globdots) # Include hidden files.
# vi mode
bindkey -v
export KEYTIMEOUT=1
# prompt
autoload -Uz compinit promptinit
compinit
promptinit
# PROMPT='%1~ %(!.#.>) '
# theme
# hotkey to swallow
bindkey -s '^O' " & disown && exit\n"
# alias
. "$HOME"/.config/shell/alias
# nix
. "$HOME"/.config/shell/nix.sh
# theme
# . "$HOME"/.themes/zsh/oxide.zsh-theme
. "$HOME"/.themes/zsh/comfyline.zsh-theme
# guix
. .config/shell/scripts/guix.sh &> /dev/null