-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
118 lines (93 loc) · 3.58 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
113
114
115
116
117
118
pokemon-colorscripts -r 1-3 --no-title
#Disable beep if on tty
if [[ -n "$DISPLAY" ]]; then
else
setterm -blength 0
fi
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
#For zsh-autosuggestions
HISTFILE=~/.zsh_history
HISTSIZE=1000
SAVEHIST=1000
#Plugin Manager
source $HOME/antigen.zsh
#Some exports for something which I dont remember
export XDG_CONFIG_HOME="$HOME/.config"
export XDG_DATA_HOME="$XDG_CONFIG_HOME/local/share"
export XDG_CACHE_HOME="$XDG_CONFIG_HOME/cache"
#The holy path
export PATH="$HOME/bin:/usr/local/bin:/usr/bin:/usr/sbin:/bin:/$HOME/.local/bin:$HOME/mybin:/home/madhavpcm/.config/local/share/gem/ruby/3.0.0/bin:/home/madhavpcm/.cargo/bin:$PATH"
export PATH="/usr/local/qt515android/bin:$HOME/.config/local/share/nvim/mason/bin:$PATH"
#Zoxide and z
eval "$(zoxide init zsh)"
#Perl stuff
PATH="/home/madhavpcm/perl5/bin${PATH:+:${PATH}}"; export PATH;
PERL5LIB="/home/madhavpcm/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
PERL_LOCAL_LIB_ROOT="/home/madhavpcm/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
PERL_MB_OPT="--install_base \"/home/madhavpcm/perl5\""; export PERL_MB_OPT;
PERL_MM_OPT="INSTALL_BASE=/home/madhavpcm/perl5"; export PERL_MM_OPT;
#Dotfiles
alias config='/usr/bin/git --git-dir=/home/madhavpcm/.cfg/ --work-tree=/home/madhavpcm/'
alias indentmesa='indent -br -i3 -npcs --no-tabs'
alias lsd=logo-ls
alias rs='rsync -Pravdtze '
#
#For X11 Lock
alias lockctl='/usr/bin/betterlockscreen -l'
#
#Vi Bindings for zsh
bindkey -v
#Mangohud
MANGOHUD_CONFIGFILE="~/.config/mangohud/mangohud.conf"
#Qt Theme
export QT_QPA_PLATFORMTHEME=qt5ct
#Default editor for git and crap
export EDITOR="nvim"
export VISUAL="nvim"
#vi edit
autoload -Uz edit-command-line
zle -N edit-command-line
bindkey -M vicmd v edit-command-line
#Theme To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
typeset -g POWERLEVEL9K_INSTANT_PROMPT=quiet
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
autoload -Uz bracketed-paste-magic
zle -N bracketed-paste bracketed-paste-magic
#Forgot
zstyle ':bracketed-paste-magic' active-widgets '.self-*'
#myexpos
#alias xfsi="cd $HOME/myexpos/xfs-interface/ && ./xfs-interface; cd -"
export STAGE="$HOME/myexpos/assignments/stage"
export SPL="$HOME/myexpos/spl/spl_progs"
export EXPL="$HOME/myexpos/expl/expl_progs"
#Wayland geng only
export _JAVA_AWT_WM_NONREPARENTING=1
export BINDGEN_EXTRA_CLANG_ARGS="$BINDGEN_EXTRA_CLANG_ARGS -DPW_ENABLE_DEPRECATED"
#export QT_LOGGING_RULES="qt.qpa.*=true"
#export WAYLAND_DEBUG=1
export MOZ_ENABLE_WAYLAND=1
#no more ssd failures plz ft.kstars
export MAKEFLAGS=-j5
export WLR_RENDERER=vulkan
export WLR_EGL_NO_MODIFIERS=1
export REXPL_HOME=$HOME/Dev/rexplc
#Android build
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
export ANDROID_SDK_ROOT=/opt/android-sdk
export ANDROID_HOME=/opt/android-sdk
export ANDROID_NDK_ROOT=/opt/android-sdk/ndk/23.1.7779620
export ANDROID_NDK_HOME=/opt/android-sdk/ndk/23.1.7779620
export PATH=$ANDROID_SDK/emulator/qemu/linux-x86_64:$ANDROID_SDK/tools:$PATH
export QT_HOST_PATH=/usr/lib/qt6/bin
export QT_ANDROID=$HOME/Qt/5.15.2/android
#Plugins
#
antigen theme romkatv/powerlevel10k
antigen bundle z-shell/zsh-navigation-tools@main
antigen bundle zsh-users/zsh-completions
antigen bundle zsh-users/zsh-autosuggestions
antigen bundle zsh-users/zsh-syntax-highlighting
antigen apply
export TERMV_API_URL=https://gist.githubusercontent.com/Roshan-R/96c859fc551527284531f59fb52f18df/raw/8c7769a13484111d98339359472174f6ae6ac889/gistfile1.txt