Skip to content

Instantly share code, notes, and snippets.

@niklasad1
Created January 28, 2017 10:35
Show Gist options
  • Save niklasad1/6654906fb75baf9d6ffcc037bf343b2c to your computer and use it in GitHub Desktop.
Save niklasad1/6654906fb75baf9d6ffcc037bf343b2c to your computer and use it in GitHub Desktop.
.zshrc
#--------------------ENV Variables---------------------------------------------#
export LANG=en_US.UTF-8 # UTF8
export TERM="xterm-256color" # 256 color schemes support
export EDITOR=vim
export SSH_KEY_PATH="~/.ssh/dsa_id" # ssh key
export VIMRC=$HOME/.vimrc
#-----------------------------------------------------------------------------#
#---------------------OH-MY-ZSH SETTINGS------- ------------------------------#
#Path to your oh-my-zsh installation
export ZSH=/home/niklasad1/.oh-my-zsh
# Path to .zshrc
export ZSHRC=$HOME/.zshrc
# autostart tmux
# export ZSH_TMUX_AUTOSTART="true"
# Uncomment the following line to change how often to auto-update (in days).
export UPDATE_ZSH_DAYS=7
# Set name of the theme to load.
ZSH_THEME="eastwood-custom"
# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
HYPHEN_INSENSITIVE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder
# plugins
plugins=(git zsh-autosuggestions vi-mode)
# launch oh-my-zsh
source $ZSH/oh-my-zsh.sh
#-----------------------------------------------------------------------------#
#--------------------ALIASES--------------------------------------------------#
alias "c=xclip -selection clipboard" # copy to clipboard e.g. ls | c
alias "wiki=vim ~/Dropbox/wiki/index.wiki"
alias "l_z=source $ZSHRC"
alias "l_v=source $VIMRC"
alias "DB=cd ~/Dropbox"
alias "DL=cd ~/Downloads"
alias "TOCK=cd $TOCK"
#-----------------------------------------------------------------------------#
#--------------------BINDS----------------------------------------------------#
# use vi/vim commands in the terminal
set -o vi
bindkey -v
export KEYTIMEOUT=1
#-----------------------------------------------------------------------------#
#--------------------RUN SCRIPTS----------------------------------------------#
# check if startup script exist
if [[ -f ~/Dropbox/Scripts/start.sh ]]; then
source ~/Dropbox/Scripts/start.sh
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment