-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathzshrc
81 lines (79 loc) · 1.99 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
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=100000
SAVEHIST=100000
setopt appendhistory beep nomatch interactive_comments
bindkey -e
bindkey "\e[3~" delete-char
bindkey "\e[H" beginning-of-line
bindkey "\e[1~" beginning-of-line
bindkey "\e[F" end-of-line
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '~/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
setopt EXTENDED_HISTORY
setopt HIST_EXPIRE_DUPS_FIRST
setopt HIST_IGNORE_DUPS
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
setopt HIST_FIND_NO_DUPS
setopt HIST_SAVE_NO_DUPS
setopt HIST_BEEP
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
zstyle ':completion:*:ssh:*' hosts off
alias sdi="sudo dnf install"
alias sai="sudo apt install"
alias sdc="sudo docker-compose"
alias xs="xsel -b"
alias ffmpeg="ffmpeg -hide_banner"
alias ffprobe="ffprobe -hide_banner"
alias fd="fdfind"
alias yarn="yarnpkg"
alias gg="git log --oneline --graph --all"
alias gs="git show-branch"
alias aria2t="aria2c --seed-time=0"
alias bc="bc -lq"
alias cp="cp --reflink=auto --sparse=always"
alias ..="cd .."
alias bat="batcat"
alias cal="ncal -Mb"
alias rsh="ssh [email protected]"
o() {
xdg-open $@ &>/dev/null
}
b() {
if [[ -z $1 ]]; then
xbacklight -get
else
sudo xbacklight -set $1
fi
}
echo -en "\e]2;$(pwd)\a"
chpwd() {
emulate -L zsh
echo -en "\e]2;$(pwd)\a"
exa
}
mkt() {
cd $(command mkt)
}
off() {
if [[ -z "$WSLENV" ]]; then
sudo poweroff
else
wsl.exe --shutdown
fi
}
export TERM="xterm-256color"
export PATH="$PATH:$HOME/.local/bin:$HOME/.cargo/bin:$HOME/.yarn/bin"
export GOPATH="$HOME/.go"
export EDITOR="nvim"
source ~/.gitstatus/gitstatus.prompt.zsh
export PROMPT="%F{196}%n%f@%F{10}%m%f:%B%F{4}%~%f%b "
export RPROMPT='$GITSTATUS_PROMPT'
export SSH_AUTH_SOCK="$HOME/.ssh-agent"
source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
eval $(ssh-agent -a "$HOME/.ssh-agent" 2>/dev/null) >/dev/null