-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.zshrc
More file actions
executable file
·132 lines (106 loc) · 3.86 KB
/
Copy path.zshrc
File metadata and controls
executable file
·132 lines (106 loc) · 3.86 KB
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
# Lines configured by zsh-newuser-install
HISTFILE=~/.zsh_history
HISTSIZE=10000
SAVEHIST=$HISTSIZE
HISTDUP=erase
setopt appendhistory
setopt sharehistory
setopt hist_ignore_space
setopt hist_ignore_all_dups
setopt hist_save_no_dups
setopt hist_ignore_dups
setopt hist_find_no_dups
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/arama/.zshrc'
# End of lines added by compinstall
#export TERMINAL=kitty
export BAT_THEME="Catppuccin Mocha"
#export PATH=$PATH:~/.local/bin:~/.cargo/bin
export PATH=$PATH:~/.local/bin
export PATH=~/.npm-global/bin:$PATH
export UV_PYTHON_PREFERENCE=system
export MANPAGER='nvim +Man!'
export EDITOR='nvim'
######## Aliases ########
# alias ls='ls --color'
alias l='eza --hyperlink --icons '
alias s="sudo "
alias c="clear"
alias gte="gnome-text-editor "
alias py="python "
alias pn="pnpm "
alias zed="zeditor "
alias oc="opencode"
# alias set-intel="sudo envycontrol -s integrated"
# alias set-hybrid="sudo envycontrol -s hybrid"
alias ff="fastfetch"
alias db="distrobox "
alias yay="paru "
alias sys='systemctl '
alias n1='ssh node1.cs.upb.de'
alias n2='ssh node2.cs.upb.de'
alias n2p='ssh -L 29000:localhost:29000 arama@node2.cs.upb.de'
alias n3='ssh node3.cs.upb.de'
alias nap="systemctl suspend"
alias die="poweroff"
alias vpn-upb="cd ~/.cert && sudo openvpn --config ~/.cert/upb_linux_udp_redirect.ovpn"
alias vpn-hni="cd ~/.cert && sudo openvpn --config ~/.cert/hni_linux_udp_default.ovpn"
# temporarily allow scanning libs in /usr/local by running expld
# (security risk to always allow)
alias expld="export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH"
##########################
eval "$(starship init zsh)"
eval "$(zoxide init --cmd cd zsh)"
source <(fzf --zsh)
# fnm
#FNM_PATH="/home/arama/.local/share/fnm"
#if [ -d "$FNM_PATH" ]; then
# export PATH="$FNM_PATH:$PATH"
# eval "`fnm env`"
#fi
#eval "$(fnm env --use-on-cd --shell zsh)"
### Added by Zinit's installer
if [[ ! -f $HOME/.local/share/zinit/zinit.git/zinit.zsh ]]; then
print -P "%F{33} %F{220}Installing %F{33}ZDHARMA-CONTINUUM%F{220} Initiative Plugin Manager (%F{33}zdharma-continuum/zinit%F{220})…%f"
command mkdir -p "$HOME/.local/share/zinit" && command chmod g-rwX "$HOME/.local/share/zinit"
command git clone https://github.com/zdharma-continuum/zinit "$HOME/.local/share/zinit/zinit.git" && \
print -P "%F{33} %F{34}Installation successful.%f%b" || \
print -P "%F{160} The clone has failed.%f%b"
fi
source "$HOME/.local/share/zinit/zinit.git/zinit.zsh"
autoload -Uz _zinit
(( ${+_comps} )) && _comps[zinit]=_zinit
# Load a few important annexes, without Turbo
# (this is currently required for annexes)
zinit light-mode for \
zdharma-continuum/zinit-annex-as-monitor \
zdharma-continuum/zinit-annex-bin-gem-node \
zdharma-continuum/zinit-annex-patch-dl \
zdharma-continuum/zinit-annex-rust
### End of Zinit's installer chunk
# use zinit self-update to update
# Add in zsh plugins
# Completions - load before compinit, no turbo
zinit light zsh-users/zsh-completions
zinit light zsh-users/zsh-autosuggestions
zinit light Aloxaf/fzf-tab
zinit light zsh-users/zsh-syntax-highlighting
autoload -Uz compinit && compinit -C
zinit cdreplay -q
# bindkey -e
bindkey '^p' history-search-backward
bindkey '^n' history-search-forward
bindkey '^A' beginning-of-line
bindkey '^E' end-of-line
bindkey '^[[1;3D' backward-word # Alt + Left
bindkey '^[[1;3C' forward-word # Alt + Right
bindkey '^[^?' backward-kill-word # Alt+Backspace deletes word
zstyle ':completion:*' menu no
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
#-----------------------------
source ~/.secrets
################# Handy commands #############
# du -sh * | sort -h # Show disk usage of files and directories in cwd
# binsider