Created
November 8, 2017 19:17
-
-
Save insipx/1cdfbc0c1ad368a5a2574ab936f1325a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export PATH="$HOME/.rvm/gems/ruby-2.4.1/bin:$PATH" | |
# Editor | |
export EDITOR=vim | |
# Path to your oh-my-zsh installation. | |
export ZSH=/home/insi/.oh-my-zsh | |
# ssh | |
export SSH_KEY_PATH="~/.ssh/rsa_id" | |
# npm | |
export NPM_PACKAGES="${HOME}/.npm-packages" | |
export NODE_PATH="${HOME}/.npm-packages/bin" | |
#GDK | |
export GDK_SCALE=2 | |
# Paths: Rust, NPM | |
export PATH=$HOME/.cargo/env:$HOME/.cargo/bin:$NPM_PACKAGES/bin:$PATH | |
# Webstorm | |
export PATH=/usr/local/bin/WebStorm-171.4424.63/bin:$PATH | |
# Android Studio | |
export PATH=/usr/local/bin/android-studio/bin:$PATH | |
#Android Home | |
export PATH=$HOME/Android/Sdk:$PATH | |
#Ruby | |
# [[ -r "$HOME/.rvm/scripts/completion" ]] && source "$HOME/.rvm/scripts/completion" | |
# rvm default | |
export ANDROID_HOME=$HOME/Android/Sdk | |
# zsh vi-mode | |
bindkey -v | |
bindkey '^P' up-history | |
bindkey '^N' down-history | |
bindkey '^?' backward-delete-char | |
bindkey '^h' backward-delete-char | |
bindkey '^w' backward-kill-word | |
bindkey '^r' history-incremental-search-backward | |
export KEYTIMOUT=1 | |
# FZF (fuzzy file finder, faster than Ctrl-P) | |
# Use ag instead of the default find command for listing path candidates. | |
# - The first argument to the function is the base path to start traversal | |
# - See the source code (completion.{bash,zsh}) for the details. | |
# - ag only lists files, so we use with-dir script to augment the output | |
#_fzf_compgen_path() { | |
# ag -g "" "$1" | with-dir "$1" | |
#} | |
# Use ag to generate the list for directory completion | |
#_fzf_compgen_dir() { | |
# ag -g "" "$1" | only-dir "$1" | |
#} | |
# | |
# fzf + ag configuration | |
#if _has fzf && _has ag; then | |
# export FZF_DEFAULT_COMMAND='ag --nocolor -g ""' | |
# export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND" | |
# export FZF_ALT_C_COMMAND="$FZF_DEFAULT_COMMAND" | |
# export FZF_DEFAULT_OPTS=' | |
# --color fg:242,bg:236,hl:65,fg+:15,bg+:239,hl+:108 | |
# --color info:108,prompt:109,spinner:108,pointer:168,marker:168 | |
# ' | |
#fi | |
# 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. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="nicoulaj" | |
# Uncomment the following line to change how often to auto-update (in days). | |
export UPDATE_ZSH_DAYS=13 | |
# 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" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# 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. | |
plugins=(git archlinux github history sudo vi-mode vagrant common-aliases) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
# | |
alias vi="nvim" | |
alias vim="nvim" | |
alias webstorm="nohup webstorm.sh &" | |
alias studio="nohup studio.sh &" | |
alias fsize="cdu -s -dhd1" | |
# human-readable, sort | |
alias du="cdu -s -dh" | |
# du w/ percent | |
alias dup="cdu -s -dh -p" | |
alias ssh="TERM=xterm-256color ssh" | |
alias start_dev="$HOME/scripts//./fix_no_space.sh" | |
alias lock="$HOME/scripts/./lock.sh" | |
alias ls="exa" | |
alias lsg="exa --git --long" | |
alias ipinfo="curl ipinfo.io" | |
alias fzf-tmux="/home/insi/scripts/fzf-tmux" | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" | |
export LD_LIBRARY_PATH=/lib/ | |
neofetch | |
source /usr/share/nvm/init-nvm.sh | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" | |
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh | |
tmux |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment