-
Notifications
You must be signed in to change notification settings - Fork 0
/
dot_zshrc
67 lines (52 loc) · 1.38 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
# Default PATH
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin
# Set JAVA_HOME
export JAVA_HOME=/opt/homebrew/opt/openjdk@11
# Export default editor
export EDITOR=nano
# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
# Add poetry to path
# export PATH="$HOME/.poetry/bin:$PATH"
# all themes can be found here: https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="agnoster"
# preset by oh-my-zsh
ZSH_DISABLE_COMPFIX="true"
source $ZSH/oh-my-zsh.sh
# hide username@machine and show sth different instead
prompt_context() {
prompt_segment black default "%(!.%{%F{yellow}%}.)$USER"
}
# add plugins
plugins=(git zsh-autosuggestions)
# This needs to be set in order for Homebrew to work (sets PATH correctly)
eval "$(/opt/homebrew/bin/brew shellenv)"
# Set pyenv (needs to be set after Homebrew))
export PATH="$HOME/.pyenv/shims:$PATH"
# set aliases
alias rep="cd ~/Repositories/ && ls"
alias vw="cd ~/Repositories/ && cd vwdfive && ls"
alias ec="$EDITOR $HOME/.zshrc"
alias sc="source $HOME/.zshrc"
alias ..="cd .."
alias tf="terraform"
alias mlp="cd ~/Repositories/mlplatform/ && ls"
alias k="kubectl"
alias c="clear"
# Set alias git
alias gs="git status"
alias gc="git checkout"
# set alias with parameter
cdls() {
cd $1 && ls
}
gitall() {
git add .
if [ "$1" != "" ]
then
git commit -m $1
git push
else
echo "add git commit message"
fi
}