Created
January 4, 2017 06:20
-
-
Save bearcatsandor/39e4e2c9441d49744da7688072cab469 to your computer and use it in GitHub Desktop.
/home/bearcat/.zshrc
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
# Path to your oh-my-zsh installation. | |
export ZSH=/home/bearcat/.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="moonwind" | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# 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 disable bi-weekly auto-update checks. | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment the following line to change how often to auto-update (in days). | |
# export UPDATE_ZSH_DAYS=13 | |
# Uncomment the following line to disable colors in ls. | |
# DISABLE_LS_COLORS="true" | |
# Uncomment the following line to disable auto-setting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# 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" | |
# Uncomment the following line if you want to change the command execution time stamp shown in the history command output. | |
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
HIST_STAMPS="yyyy-mm-dd" | |
# 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. | |
plugins=( colored-man-pages colorize common-aliases cp git github history history-substring-search screen systemd vi-mode zsh-syntax-highlighting ) | |
# User configuration | |
#export PATH="/usr/local/bin:/usr/bin:/bin:/opt/bin:/usr/x86_64-pc-linux-gnu/gcc-bin/4.9.3:/usr/games/bin:/usr/sbin:~/bin" | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# all ZSH envars need to be set before the source $ZSH.. | |
ZSH_TMUX_AUTOSTART=true | |
source $ZSH/oh-my-zsh.sh | |
# You may need to manually set your language environment | |
export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
if [[ -n $SSH_CONNECTION ]]; then | |
export EDITOR='vi' | |
else | |
export EDITOR='vim' | |
fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# ssh | |
export SSH_KEY_PATH="~/.ssh/dsa_id" | |
# 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" | |
# suffix aliases | |
alias -s flac=mpv | |
alias -s mkv=mpv | |
alias -s avi=mpv | |
alias -s mp4=mpv | |
#program aliases | |
alias windows7="qemu-system-x86_64 -enable-kvm -machine q35,accel=kvm -device intel-iommu -m 4G /home/bearcat/windows_7_64.qcow2" | |
# environment variables | |
export YK="菅野よう子" | |
# command history | |
HISTSIZE=20000 | |
SAVEHIST=20000 | |
setopt append_history # multiple zsh's all append to the same history file | |
setopt extended_history # save each command's beginning timestamp and the duration (in seconds) to the history file | |
setopt hist_expire_dups_first #If internal history needs to be trimmed to add current command line, oldest history event that has a duplicate will be lost before a unique event will | |
setopt hist_find_no_dups #backwards search does not display any dupes | |
setopt hist_ignore_all_dups #ignore duplicate entries | |
setopt hist_ignore_space #don't add to history if preceded by space | |
setopt hist_lex_words #arguments with quoted whitespace are handled properly | |
setopt hist_reduce_blanks #compact consecutive white space chrs | |
setopt hist_verify #reload a line into editing buffer instead of executing | |
setopt inc_append_history_time #append lines to history immediatly instead of waiting till shell is killed | |
#set pagers up to use vimpager | |
export PAGER=/usr/local/bin/vimpager | |
alias less=$PAGER | |
alias zless=$PAGER | |
#print out fortune | |
#if [ `which fortune` ]; then | |
# fortune | |
# echo "" | |
#fi | |
#Taken from https://github.com/chriskempson/base16-shell | |
# Base16 Shell | |
BASE16_SHELL="$HOME/.config/base16-shell/scripts/base16-tomorrow-night.sh" | |
[[ -s $BASE16_SHELL ]] && source $BASE16_SHELL | |
# Use gtk styles in qt apps (taken from | |
# https://wiki.archlinux.org/index.php/Uniform_look_for_Qt_and_GTK_applications#QGtkStyle) | |
QT_STYLE_OVERRIDE='gtk2' | |
# portage settings | |
export NUMCPUS=$(grep -E 'processor\s+:' /proc/cpuinfo | wc -l) | |
export NUMCPUSPLUSONE=$(( NUMCPUS + 1 )) | |
export MAKEOPTS="-j${NUMCPUSPLUSONE} -l${NUMCPUS}" | |
export EMERGE_DEFAULT_OPTS="--jobs=${NUMCPUSPLUSONE} --load-average=${NUMCPUS}" | |
export EIX_LIMIT=0 | |
# alias make to use available processors | |
alias make="make ${MAKEOPTS}" | |
# Report CPU usage for commands running longer than 10 seconds | |
REPORTTIME=10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment