-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmacZshEnv
71 lines (49 loc) · 2.42 KB
/
macZshEnv
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
# Setup history
export LS_COLORS="$($HOME/.cargo/bin/vivid generate one-dark)"
export ZSH_THEME="powerlevel10k/powerlevel10k".
setopt HIST_IGNORE_ALL_DUPS
setopt HIST_IGNORE_SPACE
export HISTSIZE=100000
export SAVEHIST=$HISTSIZE
# setup brew
if [[ -f "/opt/homebrew/bin/brew" ]]; then
eval "$(/opt/homebrew/bin/brew shellenv)"
elif [[ -f "/usr/local/bin/brew" ]]; then
eval "$(/usr/local/bin/brew shellenv)"
fi
# Remove dupes from our path
typeset -aU path
export PATH
export EDITOR="nvim"
#alias cp='cp --reflink=auto'
alias rgq='rg --no-filename --no-heading -N -M0'
alias du='du -h'
alias df='df -h'
alias gitk='gitk --all'
alias gcola='git-cola >/dev/null 2>/dev/null &!'
# SBT Helpers
#alias sbt='sbt -mem 1024 -J-XX:+UseConcMarkSweepGC'
alias sbtd='sbt -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.port=1099 -J-XX:+UseConcMarkSweepGC'
alias wstart='echo start|entr ./start'
alias genSrc='mkdir -p src/{main,test}/{java,scala,resources} && touch src/{main,test}/{java,scala,resources}/.keep'
# Java 8
export JAVA_OPTS="-server -XX:+UseG1GC -Xms512m -Xmx4G"
export SBT_OPTS="-server -XX:+UseG1GC -Xms512M -Xmx3G"
alias pip2u="pip2 list -o --format=columns|sed -e '1,2d'|awk '{print $1}'|xargs pip2 install -U"
alias pip3u="pip3 list -o --format=columns|sed -e '1,2d'|awk '{print $1}'|xargs pip3 install -U"
alias pip23u="pip3 list -o --format=columns|sed -e '1,2d'|awk '{print $1}'|xargs pip3 install -U && pip2 list -o --format=columns|sed -e '1,2d'|awk '{print $1}'|xargs pip2 install -U"
# Make cpanm always use sudo
#alias cpanm='cpanm --sudo'
#source "$SCRIPT_PATH/zaw/zaw.zsh"
alias pssh='ssh -o PubkeyAuthentication=no'
alias vim=nvim
alias xsv='qsv'
export BAT_THEME="OneHalfDark"
export LC_ALL=en_US.UTF-8
alias rgg='rg -g"!vendor/"'
alias gof='find . -name vendor -prune -o -iname "*.go" -print0|parallel -X0 goimports -w'
alias tup='RUSTFLAGS="-C link-args=-s -C target-cpu=native" topgrade --disable gem --disable pip3 --disable vim --disable cargo --skip-notify && antidote update && pyenv update'
alias cupa='RUSTFLAGS="-C link-args=-s -C target-cpu=native" cargo install-update -af'
alias cupl='RUSTFLAGS="-C link-args=-s -C target-cpu=native" cargo install-update -l'
alias cupi='RUSTFLAGS="-C link-args=-s -C target-cpu=native" cargo install'
alias goout='go list -u -m -json all | go-mod-outdated -direct -update'