-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy path.zshrc
110 lines (96 loc) · 3.23 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
107
108
109
110
# ███████╗███████╗██╗ ██╗
# ╚══███╔╝██╔════╝██║ ██║
# ███╔╝ ███████╗███████║
# ███╔╝ ╚════██║██╔══██║
# ███████╗███████║██║ ██║
# ╚══════╝╚══════╝╚═╝ ╚═╝
##########################
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '~/.zshrc'
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'
autoload -Uz compinit
compinit
# End of lines added by compinstall
###################################
# Plugins
###################################
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.plugin.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.plugin.zsh
source <(fzf --zsh)
###################################
# exclusive settings
###################################
# vi mode
bindkey -v
export KEYTIMEOUT=1
# language and unicode
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
# Editor
export EDITOR=nvim
export VISUAL=nvim
export TERM=xterm-256color
## Editing command line in vim
autoload -z edit-command-line
zle -N edit-command-line
bindkey -M vicmd v edit-command-line
# Keybindings
bindkey "^[[H" beginning-of-line
bindkey "^[[F" end-of-line
bindkey "^[[3~" delete-char
###################################
# Exporting Paths
###################################
export PATH="$HOME/.local/bin:$PATH"
###################################
# Aliases
###################################
## Universal
alias iconfig="nvim ~/.config/i3/config"
alias qconfig="nvim ~/.config/qtile/config.py"
alias polyconfig="nvim ~/.config/polybar/config.ini"
alias piconfig="nvim ~/.config/picom/picom.conf"
alias alconfig="nvim ~/.config/alacritty/alacritty.toml"
alias kitconfig="nvim ~/.config/kitty/kitty.conf"
alias wezconfig="nvim ~/.config/wezterm/wezterm.lua"
alias swayfig="nvim ~/.config/sway/"
alias ls="eza --icons"
alias la="ls -la"
alias lsTree="ls --tree"
alias vv="nvim"
alias dv="devour"
alias open="devour pcmanfm"
alias ss="yazi ~/Pictures/screenshots"
alias anaconda="source ~/anaconda3/bin/activate && anaconda-navigator"
alias luadir="cd ~/Documents/Lua/Lua_Basics/"
alias neodir="cd ~/.config/nvim"
alias DS="cd ~/Desktop/DS"
alias bsource="source .bashrc"
alias xx="exit"
alias cc="clear"
alias ai="tgpt"
alias lg="lazygit"
alias gg="fg"
alias ins='nvim $(fzf -m --preview="bat --theme=gruvbox-dark --color=always {}")'
alias fastfetch='fastfetch --kitty ~/.config/fastfetch/pngs/anime.png'
## Arch
alias up="yay -Syyu"
alias ref="yay -Syy"
alias search="yay -Ss"
alias pacs="yay -Q | wc -l"
alias list="yay -Q"
alias aur_list="yay -Qm"
alias upArchMirrors="rate-mirrors --allow-root --protocol https arch | sudo tee /etc/pacman.d/mirrorlist"
###################################
# Tmux
###################################
alias tnew="tmux new -s"
alias tls="tmux ls"
alias trename="tmux rename-session -t"
alias ta="tmux a -t"
eval "$(starship init zsh)"