summaryrefslogtreecommitdiffstats
path: root/zsh/.zshrc
blob: f74810d08422228fefb3a54ea61d73678cc727ba (plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Input/Output
setopt interactive_comments

# Expansion and Globbing
setopt extended_glob nomatch

# Job Control
unsetopt notify

# History
setopt append_history hist_ignore_dups hist_ignore_space
HISTFILE=~/.cache/zsh/histfile
HISTSIZE=1000
SAVEHIST=100000

# Zle
setopt beep
autoload -z edit-command-line
zle -N edit-command-line

# Keybinds
bindkey -e
bindkey \^U backward-kill-line
bindkey \^X\^E edit-command-line

# Changing Directories
setopt auto_cd auto_pushd
DIRSTACKSIZE=30

# Completion
setopt always_to_end list_ambiguous
zstyle ':completion:*' menu select
zstyle ':completion:*' use-perl on
zstyle ':completion:*' use-cache on
zstyle ':completion:*' cache-path $HOME/.cache/zsh/complcache
zstyle ':completion:*:*:kill:*' command 'ps --forest -u$USER -o pid,%cpu,tty,cputime,cmd'
zstyle :compinstall filename "$HOME/.zshrc"
autoload -Uz compinit
compinit -d $HOME/.cache/zsh/zcompdump

# Misc
typeset -U path
path+=(~/.local/bin)
path+=(~/.ghcup/bin, ~/.cabal/bin)

REPORTTIME=2
PROMPT=": "
RPROMPT="%1~"

# Aliases
alias _='sudo '
alias g='git'
alias hc='herbstclient'
alias l='ls -l'
alias ll='ls -la'
alias p='pacman'
alias sc='systemctl'
alias aria2c="aria2c --conf-path=$HOME/.config/aria2/config"
alias chat="ssh karif -t 'TERM=\"xterm\" /usr/bin/bash -l -c \"tmux attach -t weechat\"'"
alias tmux='tmux -f ~/.config/tmux/tmux.conf'