-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot-zshrc
113 lines (91 loc) · 2.82 KB
/
dot-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
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Theme
# ZSH_THEME="spaceship"
SPACESHIP_GIT_STATUS_UNTRACKED=" ⁉ unt"
SPACESHIP_GIT_STATUS_ADDED=" + add"
SPACESHIP_GIT_STATUS_MODIFIED=" ‼ mod"
SPACESHIP_GIT_STATUS_RENAMED=" ✏ ren"
SPACESHIP_GIT_STATUS_DELETED=" ✖ del"
SPACESHIP_GIT_STATUS_STASHED=" ◳ stash"
SPACESHIP_USER_SHOW=always
SPACESHIP_ASYNC_SHOW=false
SPACECHIP_PROMPT_ASYNC=false
SPACESHIP_GIT_ASYNC=false
SPACESHIP_GOLANG_ASYNC=false
SPACESHIP_RUST_ASYNC=false
SPACESHIP_NODE_ASYNC=false
# Update automatically without asking
zstyle ':omz:update' mode auto
plugins=(
git
colorize
zsh-autosuggestions
zsh-syntax-highlighting
exercism
dotenv
)
source $ZSH/oh-my-zsh.sh
# User configuration
# ls alias
alias l='ls -lh'
alias ll='ls -lah'
alias la='ls -A'
alias lm='ls -m'
alias lr='ls -R'
alias lg='ls -l --group-directories-first'
# git alias
alias gd='git diff'
alias gcl='git clone --depth 1'
alias gi='git init'
alias ga='git add'
alias gaa='git add .'
alias gc='git commit -m'
alias gp='git push origin'
alias gs='git status'
alias glg="git log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
alias gfgp="git fetch && git pull"
# Little useless
alias letsfocus!="play -r48000 -c2 -n synth -1 pinknoise .1 80"
# Fedora
alias updatesys="sudo dnf upgrade && flatpak update"
# You may need to manually set your language environment
export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
export EDITOR='nvim' # <3
export VISUAL='nvim'
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
# Go
export GOPATH=$HOME/go
export GOBIN=$GOPATH/bin
# Add binaries directories to path
export PATH=$PATH:~/go/bin
export PATH=$PATH:~/.local/bin
export PATH=$PATH:/usr/local/bin/npm/bin
export PATH=$PATH:~/.local/share/DrMemory/bin64
# export XDEB_PKGROOT=${HOME}/.config/xdeb
# wal
# (cat ~/.cache/wal/sequences &)
# Pyenv
# export PYENV_ROOT="$HOME/.pyenv"
# [[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
# eval "$(pyenv init -)"
# eval "$(pyenv virtualenv-init -)"
# Shred alias
alias rmm="shred -z -n 2 -u"
eval "$(starship init zsh)"
# Beautifull greetings
export PF_INFO="ascii title os host kernel uptime memory editor shell"
pfetch
# pnpm
export PNPM_HOME="/home/buda/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="/home/buda/.sdkman"
[[ -s "/home/buda/.sdkman/bin/sdkman-init.sh" ]] && source "/home/buda/.sdkman/bin/sdkman-init.sh"