-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
71 lines (60 loc) · 2.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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
# 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
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
# Initialization code that may require console input (password prompts, [y/n]
# confirmations, etc.) must go above this block; everything else may go below.
# 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
#Zshrc with 2 places
#
addpath () {
if [[ ! "${PATH}" =~ "${1}" ]]; then
export PATH=$PATH:$1;
fi
}
#WorkSettings
if [[ $USER == "joao-pol" ]]; then
addpath $HOME/sgoinfre/homebrew/bin
addpath /usr/local/bin
export [email protected]
export USER=joao-pol
export HOMEBREW_NO_AUTO_UPDATE=1
elif [[ $USER == "mrsloth" ]]; then
alias penv="source ~/.pythonenv/bin/activate"
addpath $HOME/.cargo/bin
addpath $HOME/.zig
addpath $HOME/go/bin
cowsay "Welcome to Zmux"
fi
#Common Settings
#
export ZSH="$HOME/.oh-my-zsh"
export ZSHRC="$HOME/.zshrc"
export ZSH_COMPDUMP=$ZSH/cache/.zcompdump-$HOST
export EDITOR="nvim"
alias so="source $ZSHRC"
ZSH_THEME="crunch" # set by `omz`
alias tk="~/.dotfiles/scripts/tmux_kill.sh"
alias lg="lazygit"
alias sym="~/.dotfiles/scripts/symlink.sh"
alias obs="nvim ~/ObsidianNotes/"
alias upup=" cd ~/.dotfiles/ && git add . && git commit -m 'update' && git push && cd -"
#similar to arrow keys
bindkey "^P" up-line-or-search
bindkey "^N" down-line-or-search
plugins=(git)
addpath $HOME/.local/bin
eval "$(zoxide init zsh)"
source ~/.powerlevel10k/powerlevel10k.zsh-theme
source $ZSH/oh-my-zsh.sh
# To customize prompt, run `p10k configure` or edit ~/.p10k.zsh.
#
[[ ! -f ~/.p10k.zsh ]] || source ~/.p10k.zsh
alias zbr='zig build run'
alias zbt='zig build test'
alias lzd=lazydocker