-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zshrc
75 lines (61 loc) · 1.83 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
# load zgen
source "${HOME}/.zgen/zgen.zsh"
# if the init script doesn't exist
if ! zgen saved; then
# specify plugins here
zgen oh-my-zsh
zgen oh-my-zsh plugins/git
zgen oh-my-zsh plugins/sudo
zgen oh-my-zsh plugins/command-not-found
zgen load supercrabtree/k
# Auto suggestions
zgen load zsh-users/zsh-autosuggestions
# Syntax highlighting bundle
zgen load zsh-users/zsh-syntax-highlighting
# generate the init script from plugins above
zgen save
fi
# declare zsh var
ZSH=$HOME/.oh-my-zsh
DISABLE_AUTO_UPDATE="true"
# wm specific env variables
export XDG_CURRENT_DESKTOP=Hyprland
export XDG_SESSION_TYPE=wayland
export XDG_SESSION_DESKTOP=Hyprland
# gtk fixes
export GTK_THEME="Flat-Remix-GTK-Teal-Darkest-Solid"
# export bin folder to path
export PATH="/usr/local/bin:$PATH"
# fnm
export PATH="$PATH:$HOME/.fnm"
eval "`fnm env`"
# Load secret tokens
if [ -f "$HOME/.zsh_secrets" ]; then
source "$HOME/.zsh_secrets"
fi
function nvim {
($HOME/dotfiles/scripts/nvim "$@")
}
# use nvim as default editor
export EDITOR="nvim"
export VISUAL="nvim"
# cursor cmd, run and forget
function cursor {
(/usr/bin/cursor "$@" >/dev/null 2>&1 &)
}
# aliases
alias ls="lsd"
alias shit="cowsay shit"
alias vim="nvim"
alias vi="nvim"
alias icat="kitty +kitten icat"
alias sizeof="$HOME/Code/dotfiles/scripts/sizeof"
alias photomod="$HOME/Code/dotfiles/scripts/photomod"
alias dedupvid="$HOME/Code/dotfiles/scripts/dedupvid"
alias rm="trash"
# The next line updates PATH for the Google Cloud SDK.
if [ -f '/home/mxarc/google-cloud-sdk/path.zsh.inc' ]; then . '/home/mxarc/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
if [ -f '/home/mxarc/google-cloud-sdk/completion.zsh.inc' ]; then . '/home/mxarc/google-cloud-sdk/completion.zsh.inc'; fi
# load starship prompt
eval "$(starship init zsh)"