-
Notifications
You must be signed in to change notification settings - Fork 0
/
zshrc
executable file
·106 lines (88 loc) · 2.93 KB
/
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#!/usr/bin/env zsh
source ~/powerlevel10k/powerlevel10k.zsh-theme
export LANG="en_US.UTF-8"
export LC_COLLATE="C"
export EDITOR=vim
export PGCLIENTENCODING="utf8"
export PATH="$HOME/bin:/home/niwinz/.local/bin:$PATH"
export _JAVA_AWT_WM_NONREPARENTING=1
export JAVA_HOME="/usr/lib/jvm/jdk-17"
bindkey -e
bindkey "^[[3~" delete-char
bindkey "^[3;5~" delete-char
bindkey '^R' history-incremental-search-backward
#autoload -U promptinit
#promptinit
#prompt zefram
#------------------------------
## Comp stuff
##------------------------------
zmodload zsh/complist
autoload -Uz compinit
compinit
zstyle :compinstall filename '${HOME}/.zshrc'
zstyle ':completion:*:pacman:*' force-list always
zstyle ':completion:*:*:pacman:*' menu yes select
#------------------------------
# Alias stuff
#------------------------------
alias ls="ls --color -F"
alias ll="ls --color -lh"
alias 'lsd'='ls -d *(/)'
alias 'lsf'='ls -h *(.)'
alias 'rm'='rm -r'
alias 'cp'='cp -r'
alias 'l'='ls --color -GFlh'
#-----------------
# Options
#-----------------
setopt AUTO_CD # implicate cd for non-commands
#setopt CD_ABLE_VARS # read vars in cd
setopt CORRECT_ALL # correct spelling
setopt COMPLETE_IN_WORD # complete commands anywhere in the word
setopt NOTIFY # Notify when jobs finish
#setopt C_BASES # 0xFF
setopt BASH_AUTO_LIST # Autolist options on repeition of ambiguous args
#setopt CHASE_LINKS # Follow links in cds
#setopt AUTO_PUSHD # Push dirs into history
#setopt ALWAYS_TO_END # Move to the end on complete completion
#setopt LIST_ROWS_FIRST # Row orientation for menu
setopt MULTIOS # Allow Multiple pipes
#setopt MAGIC_EQUAL_SUBST # Expand inside equals
setopt EXTENDED_GLOB
setopt NOBEEP
setopt INC_APPEND_HISTORY
export HISTSIZE=5000
export SAVEHIST=5000
export HISTFILE=~/.zhistory
## OTHER OPTS
setopt hist_ignore_all_dups
setopt hist_ignore_space
#------------------------------
# Window title
#------------------------------
# case $TERM in
# *xterm*|rxvt|rxvt-unicode|rxvt-256color|(dt|k|E)term)
# precmd () { print -Pn "\e]0;$TERM - (%L) [%n@%M]%# [%~]\a" }
# preexec () { print -Pn "\e]0;$TERM - (%L) [%n@%M]%# [%~] ($1)\a" }
# ;;
# screen)
# precmd () {
# print -Pn "\e]83;title \"$1\"\a"
# print -Pn "\e]0;$TERM - (%L) [%n@%M]%# [%~]\a"
# }
# preexec () {
# print -Pn "\e]83;title \"$1\"\a"
# print -Pn "\e]0;$TERM - (%L) [%n@%M]%# [%~] ($1)\a"
# }
# ;;
# esac
bindkey -e
# LEIN_FAST_TRAMPOLINE=y
# export LEIN_FAST_TRAMPOLINE
# alias cljsbuild="lein trampoline cljsbuild $@"
# alias docker-clean="docker ps -a | grep 'weeks ago' | awk '{print $1}' | xargs --no-run-if-empty docker rm"
source ~/.nvm/nvm.sh
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"