-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
112 lines (101 loc) · 3.12 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
111
112
export ZSH=$HOME/.oh-my-zsh
plugins=(git
extract
web-search
yum
git-extras
# docker
vagrant
zsh-autosuggestions)
ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=#999999'
HISTFILE=~/.zsh_history
HISTSIZE=20000
SAVEHIST=20000
setopt appendhistory
setopt INC_APPEND_HISTORY
setopt SHARE_HISTORY
source "$HOME"/dotfiles/scripts/function.sh
source "$HOME/.config/river/environment.sh"
source $ZSH/oh-my-zsh.sh
source /usr/share/nvm/init-nvm.sh
# Set up fzf key bindings and fuzzy completion
source <(fzf --zsh)
export LANG=en_US.UTF-8
export PATH="$HOME/.local/bin:$PATH"
export PATH="$HOME/scripts:$PATH"
export GOPATH="$HOME/go"
export PATH=$PATH:$(go env GOPATH)/bin
export PATH=$PATH:"$HOME/.cargo/bin"
export RIPGREP_CONFIG_PATH=$HOME/.ripgreprc
export EDITOR=nvim
export VISUAL=nvim
export SUDO_EDITOR=nvim
[ -z "$TMUX" ] && export TERM=xterm-256color
export FZF_DEFAULT_OPTS="\
--ansi \
--layout=reverse \
--border=rounded \
--height=100% \
--preview-window=65% \
--margin=1% \
--sort \
--bind='ctrl-c:abort' \
--bind='ctrl-b:preview-page-up' \
--bind='ctrl-f:preview-page-down' \
--bind='ctrl-u:preview-half-page-up' \
--bind='ctrl-d:preview-half-page-down' \
" # --inline-info
# Use fd instead of find
export FZF_DEFAULT_COMMAND='\
fd --type f -L \
--strip-cwd-prefix \
--hidden \
--no-ignore \
--exclude .git \
--ignore-file ~/home.gitignore\
'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export FZF_CTRL_T_OPTS="
--preview '~/scripts/preview.sh {}' \
--height=100% \
--preview-window=65% \
--bind='ctrl-c:abort' \
--bind='ctrl-b:preview-page-up' \
--bind='ctrl-f:preview-page-down' \
--bind='ctrl-u:preview-half-page-up' \
--bind='ctrl-d:preview-half-page-down' \
"
alias pokescript='pokemon-colorscripts -r'
alias color='colorscript -r'
alias pipes='pipes.sh -R -p 4 -t 0'
alias c.='cd ~/dotfiles'
alias :q='exit'
alias lf=lfcd
alias yazi=yy
alias updategrub='sudo grub-mkconfig -o /boot/grub/grub.cfg'
alias fvim='fzf --print0 | xargs -0 -o nvim'
alias lg=lazygit
alias yeet="sudo pacman -Rns"
alias up='paru -Syu'
alias cleanfetch='clear && fastfetch'
alias pyActivate='source $HOME/Projects/Python/venv/bin/activate'
alias androidfs='sshfs -o follow_symlinks,IdentityFile=/home/sumit/.ssh/id_rsa u0a533@192.168.29.199:/data/data/com.termux/files/home/storage/shared/ -p 8022 /home/sumit/Android'
alias ls='eza --all --icons=always --color=always --group-directories-first'
alias lt='eza --all --tree --color-scale --level=2 --icons=always --color=always --group-directories-first'
alias ll='eza -al --no-time --no-user --no-permissions --no-filesize --icons=always --color=always --group-directories-first'
alias la='eza -alh --git --icons=always --color=always --group-directories-first'
# Git Aliases
alias gs='git status'
alias ga='git add'
alias ga.='git add --all'
alias gc='git commit'
alias gl='git log --oneline'
alias gb='git checkout -b'
alias gd='git diff'
alias gp='git push'
alias gP='git pull'
eval "$(starship init zsh)"
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
# (cat ~/.cache/wal/sequences &)
# Remove duplicates from $PATH
typeset -U PATH