aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
blob: fff8e5c663ead5e93bcf52a0a2bd796603089990 (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
export PATH
PATH="$HOME/.local/bin:$PATH"
PATH="$HOME/.cargo/bin:$PATH"

export VISUAL=vim
export EDITOR=$VISUAL
export BROWSER=firefox

PS1='%F{blue}%n%f@%m %B%40<..<%~%<< %b%# '

HISTFILE=~/.histfile
HISTSIZE=1000000000
SAVEHIST=1000000000
HISTORY_IGNORE="(ls|cd|rm|cp|mv|vim|mkdir|cat|tree|code|rg|locate|pdfgrep|mpv|mupdf|firefox) *|git commit -am *|git commit -m *|git grep *|git (mv|show|checkout|add|log|clone) *"

setopt auto_pushd
setopt autocd
setopt HIST_IGNORE_SPACE
setopt histignorealldups
setopt INTERACTIVE_COMMENTS
setopt +o nomatch

chpwd() {
	ls
}

bindkey -v # vi keybindings
bindkey '^R' history-incremental-search-backward

alias gitstat='git shortlog -s | sort -nr'
alias tree='tree -aF --dirsfirst -I ".git|target|*/.git/*|*/target/*"'
alias ls='ls -Ap --color=auto --group-directories-first'
alias code=codium
alias trmws="sed --in-place 's/[[:space:]]\+$//'"
alias cdiff='git diff --color-words --no-index'