-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.zshrc
51 lines (45 loc) · 1.34 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
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
source ~/.zinit/bin/zinit.zsh
(( ${+_comps} )) && _comps[zinit]=_zinit
zinit for \
light-mode zsh-users/zsh-autosuggestions \
zdharma/fast-syntax-highlighting \
romkatv/powerlevel10k \
alias merge="xrdb -merge $HOME/.Xresources"
alias upgrub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
alias ls="ls --color=auto"
alias la="ls -alFh --color=auto"
alias llp="stat -c '%A %a %n' {*,.*}"
alias ll="ls -a --color=auto"
alias l="ls -CF --color=auto"
alias lss="ls -sh | sort -h"
alias c='clear'
alias h='history'
alias ping='ping -c 5'
alias ports='netstat -tulanp'
alias fastping='ping -c 100 -s.2'
alias /="cd /"
alias ~="cd ~"
alias ..="cd .."
alias ...="cd ../.."
alias ....="cd ../../.."
alias .....="cd ../../../.."
alias ......='cd ../../../../..'
alias q="exit"
alias xbi="sudo xbps-install -S"
alias xbu="sudo xbps-install -Su"
alias xbr="sudo xbps-remove"
alias xbo="sudo xbps-remove -Oo"
alias dt="cd ~/Documents/dots"
setopt completealiases
autoload -U compinit && compinit
setopt HIST_IGNORE_DUPS
ZSH_CACHE_DIR=$HOME/.cache/zshcache
export BROWSER="firefox"
export TERM="st"
HISTFILE=~/.cache/.zhist
HISTSIZE=100000
SAVEHIST=100000
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh