forked from beagleknight/dotfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
85 lines (63 loc) · 2.55 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
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
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="af-magic"
zstyle ':completion:*' special-dirs true
# Set to this to use case-sensitive completion
# CASE_SENSITIVE="true"
# Comment this out to disable weekly auto-update checks
# DISABLE_AUTO_UPDATE="true"
# Uncomment following line if you want to disable colors in ls
# DISABLE_LS_COLORS="true"
# Uncomment following line if you want to disable autosetting terminal title.
# DISABLE_AUTO_TITLE="true"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Example format: plugins=(rails git textmate ruby lighthouse)
plugins=(git zsh-autosuggestions zsh-syntax-highlighting zsh-completions)
source $ZSH/oh-my-zsh.sh
# Customize to your needs...
#ALIASES
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
#Git
alias gl='git gl'
alias gs='git gs'
alias ggl='ggpull --rebase'
#FUNCTIONS
mkcd() { mkdir -p "$@" && cd "$@"; }
# Java / Android Setup
# export JAVA_HOME=$(/usr/libexec/java_home)
# export ANDROID_HOME="${HOME}/Library/Android"
# export ANDROID_SDK="${ANDROID_HOME}/sdk"
# export NDK="${ANDROID_SDK}/ndk-bundle"
# export ANDROID_NDK="${NDK}"
# export ANDROID_BUILD_TOOLS_VERSION=28.0.3
#export ANDROID_CMAKE_VERSION=3.6.4111459
export PATH="/usr/local/bin:${PATH}"
# export PATH="${ANDROID_SDK}/build-tools/${ANDROID_BUILD_TOOLS_VERSION}:${PATH}"
# export PATH="${ANDROID_SDK}/platform-tools:${PATH}"
# export PATH="${ANDROID_SDK}/tools/bin:${PATH}"
#export PATH="${ANDROID_SDK}/cmake/${ANDROID_CMAKE_VERSION}/bin:${PATH}"
# Yarn
export PATH="$PATH:`yarn global bin`"
hidutil property --set '{"UserKeyMapping":
[{"HIDKeyboardModifierMappingSrc":0x7000000e4,
"HIDKeyboardModifierMappingDst":0x7000000e6},
{"HIDKeyboardModifierMappingSrc":0x70000004d,
"HIDKeyboardModifierMappingDst":0x700000064}]
}' &> /dev/null
# The next line updates PATH for the Google Cloud SDK.
# if [ -f '/Users/alex.marles/google-cloud-sdk/path.zsh.inc' ]; then . '/Users/alex.marles/google-cloud-sdk/path.zsh.inc'; fi
# The next line enables shell command completion for gcloud.
# if [ -f '/Users/alex.marles/google-cloud-sdk/completion.zsh.inc' ]; then . '/Users/alex.marles/google-cloud-sdk/completion.zsh.inc'; fi
# fnm
export PATH=${HOME}/.fnm:${PATH}
eval "`fnm env`"
eval "$(fnm env --use-on-cd)"