-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
53 lines (36 loc) · 1.29 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
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
ZSH_THEME="powerlevel9k/powerlevel9k"
DEFAULT_USER=$(whoami)
export EDITOR=vim
plugins=(git docker sbt scala kubectl zsh-syntax-highlighting common-aliases zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh
# User configuration
# Export default PATH
export PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
# Load custom user scripts
export PATH="$PATH:$HOME/.custom-scripts"
# Load exercism
export PATH="$PATH:$HOME/Tools/exercism"
# Powerlevel9k config
export POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(vcs dir)
export POWERLEVEL9K_DISABLE_RPROMPT=true
# alt + s = sudo
insert_sudo () { zle beginning-of-line; zle -U "sudo " }
zle -N insert-sudo insert_sudo
bindkey "^[s" insert-sudo
# Aliases
bindkey "^R" history-incremental-pattern-search-backward
bindkey "^S" history-incremental-pattern-search-forward
alias temp='cd $(mktemp -d)'
alias hg='history | grep'
alias cpa='pwd | pbcopy'
alias kc='kubectl'
kca () { kubectl "$@" --all-namespaces }
alias di='docker images'
alias dp='docker ps'
export KUBECONFIG=~/Tools/ysf-kubeconfig
# SDKMAN
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"