-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc_ubuntu
58 lines (45 loc) · 1.38 KB
/
.zshrc_ubuntu
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
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="robbyrussell"
zstyle ':omz:update' mode auto # update automatically without asking
plugins=(git zsh-autosuggestions zsh-syntax-highlighting mvn kubectl)
source $ZSH/oh-my-zsh.sh
# You may need to manually set your language environment
export LANG=en_US.UTF-8
# Preferred editor for local and remote sessions
if [[ -n $SSH_CONNECTION ]]; then
export EDITOR='vim'
else
export EDITOR='vim'
fi
# Compilation flags
# export ARCHFLAGS="-arch x86_64"
alias bye="systemctl poweroff -i"
alias upgrade="sudo apt update && sudo apt upgrade -y"
alias instal="sudo apt update && sudo apt install -y"
alias uninstal="sudo apt remove -y"
alias cleanup="sudo apt autoremove -y && sudo apt autoclean"
alias open="xdg-open"
alias p="python3"
alias update="sudo apt update"
alias mci="mvn clean install"
# Docker
alias dcu="docker-compose up"
alias dcd="docker-compose down"
alias di="docker images"
alias dps="docker ps"
alias ds="docker stop"
alias dcp="docker container prune"
alias dsp="docker system prune"
alias dri="docker rmi"
autoload -U compinit && compinit
# Kubernetes
alias k="kubectl"
alias kg="kubectl get"
# GO settings
export GOPATH=$HOME/.local/share/go
export GOBIN=$GOPATH/bin
export PATH=$PATH:$GOBIN
# Expose docker daemon
#eval $(minikube docker-env)
# SDKMAN
[[ -s $HOME/.sdkman/bin/sdkman-init.sh ]] && source $HOME/.sdkman/bin/sdkman-init.sh