-
Notifications
You must be signed in to change notification settings - Fork 0
/
.zshrc
94 lines (87 loc) · 3.75 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
86
87
88
89
90
91
92
93
94
#If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
DEFAULT_USER="$USER"
bindkey -v
bindkey jk vi-cmd-mode
plugins=(react-native vi-mode git npm node heroku yarn zsh-autosuggestions zsh-syntax-highlighting zsh-syntax-highlighting)
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
export PATH=/usr/local/bin:$PATH
export ANDROID_SDK=$HOME/Library/Android/sdk
export ANDROID_HOME=$HOME/Library/Android/sdk
export JAVA_HOME="/Applications/Android Studio.app/Contents/jre/jdk/Contents/Home"
export PATH=$ANDROID_SDK/emulator:$ANDROID_SDK/tools:$PATH
export NODE_ENV=development
export BABEL_ENV=$NODE_ENV
export KEYTIMEOUT=15
autoload -Uz surround
zle -N delete-surround surround
zle -N add-surround surround
zle -N change-surround surround
bindkey -a cs change-surround
bindkey -a ds delete-surround
bindkey -a ys add-surround
bindkey -M visual S add-surround
# sets up vimmish text-objects in zsh
autoload -U is-at-least
if is-at-least 5.0.8; then
autoload -U select-quoted; zle -N select-quoted
for m in visual viopp; do
for c in {a,i}{\',\",\`}; do
bindkey -M $m $c select-quoted
done
done
autoload -U select-bracketed; zle -N select-bracketed
for m in visual viopp; do
for c in {a,i}${(s..)^:-'()[]{}<>bB'}; do
bindkey -M $m $c select-bracketed
done
done
fi
#source /usr/local/share/antigen/antigen.zsh
#antigen use oh-my-zsh
#antigen use hlissner/zsh-autopair
#antigen apply
alias n="nvim"
alias ss="python quickstart.py"
alias playra="ssh '[email protected]'"
alias reinstall="rm -rf node_modules/ && yarn cache clean && yarn install"
alias es6="yarn add -D babel-cli babel-plugin-transform-object-rest-spread babel-preset-env"
alias reduxinit="npm i -S redux react-redux redux-thunk eslint-plugin-react firebase lodash prop-types react-native-fetch-blob react-native-image-picker redux-devtools-extension babel-jest babel-preset-react-native react-native-svg react-navigation react-test-renderer axios qs"
alias rni="react-native init"
alias video="xcrun simctl io booted recordVideo /Users/playra/Desktop/video.m4v"
alias ios="npx react-native run-ios --simulator='iPhone SE'"
alias iosx="npx react-native run-ios --simulator='iPhone 11'"
alias and="npx react-native run-android"
alias anddevice="npx react-native run-android --variant=release"
alias emu="emulator @Pixel_3_API_28"
alias s="npx react-native start -- --reset-cache"
alias nvimrc='vim ~/dotfiles/.nvimrc'
alias vimrc='nvim ~/dotfiles/.vimrc'
alias zshrc='nvim ~/dotfiles/.zshrc'
alias ctags='nvim ~/dotfiles/.ctags'
alias tg='cd && cd Applications/tg && bin/telegram-cli -W'
alias ..='cd ..'
alias rdir='mkdir -p src/{components,actions,screens,helpers,reducers}'
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# ZSH_THEME="agnoster"
# ZSH_THEME="node"
ZSH_THEME="spaceship"
POWERLEVEL9K_MODE="nerdfont-complete"
POWERLEVEL9K_DISABLE_RPROMPT=true
POWERLEVEL9K_PROMPT_ON_NEWLINE=true
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="▶ "
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX=""
# Uncomment the following line to enable command auto-correction.
ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
COMPLETION_WAITING_DOTS="true"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
ZSH_DISABLE_COMPFIX="true"
source $ZSH/oh-my-zsh.sh