-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
50 lines (43 loc) · 1.45 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
# Plugins
[ -f "$HOME/.local/share/zap/zap.zsh" ] && source "$HOME/.local/share/zap/zap.zsh"
plug "zsh-users/zsh-autosuggestions"
plug "zap-zsh/supercharge"
plug "zsh-users/zsh-syntax-highlighting"
# Prompt
PROMPT="%{$fg[white]%}[%n@%m] %(?:%{$fg_bold[green]%} :%{$fg[red]%} )%(?:%{$fg[cyan]%}%1c :%{$fg[red]%}%1c )%{$reset_color%}"
# PROMPT="%(?:%{$fg_bold[green]%}➜ :%{$fg_bold[red]%}➜ )%{$fg[cyan]%}%~%{$reset_color%} "
# PROMPT="%(?:%{$fg_bold[green]%} :%{$fg_bold[red]%} )%{$fg[cyan]%}%~%{$reset_color%} "
# Exports
export PATH=$PATH:~/.local/bin/:~/.cargo/bin/
# Aliases
alias config='/usr/bin/git --git-dir=$HOME/dotfiles --work-tree=$HOME'
please() {
sudo $(fc -ln -1)
}
alias :q='exit'
alias :wq='exit'
alias la='ls -A'
alias ll='ls -lA'
alias ..='cd ..'
alias mv='mv -i'
alias rm='rm -i'
alias listwifi='nmcli d wifi list'
alias connectwifi='nmcli --ask d wifi connect'
alias matrix='unimatrix -lnnsss -s95'
alias clipboard='wl-copy'
alias icat='kitty +kitten icat'
alias pls='please'
alias kot='cat'
alias weather='curl wttr.in'
alias neofetch="fastfetch"
alias token='cat ~/.token | clipboard'
alias autom='cat ~/.token2 | clipboard'
alias logout='pkill -KILL -u $(whoami)'
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias tmux-detach-all='tmux ls | cut -d ':' -f 1 | xargs -I {} tmux detach -s {}'
alias sdn='shutdown now'
alias gs="git status"
alias ga="git add"
alias gc="git commit -m"
alias gl="git log --branches --not --remotes"