Skip to content

Instantly share code, notes, and snippets.

/.zimrc Secret

Created April 17, 2016 01:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/6cb081de4374c036e42e9d31069265eb to your computer and use it in GitHub Desktop.
Save anonymous/6cb081de4374c036e42e9d31069265eb to your computer and use it in GitHub Desktop.
#################
# CORE SETTINGS #
#################
#
# Zim settings
#
# Select what modules you would like enabled.
# The second line of modules may depend on options set by modules in the first line.
# These dependencies are noted on the respective module's README.md.
zmodules=(directory environment git history input utility custom \
syntax-highlighting history-substring-search prompt completion spectrum archive ssh pacman)
###################
# MODULE SETTINGS #
###################
#
# Prompt
#
# Set your desired prompt here
zprompt_theme='steeef'
#
# Utility
#
# Uncomment to enable command correction prompts; 'setopt CORRECT'
# See: http://zsh.sourceforge.net/Doc/Release/Options.html#Input_002fOutput
#zcorrection='true'
#
# Syntax-Highlighting
#
# This determines what highlighters will be used with the syntax-highlighting module.
# Documentation of the highlighters can be found here:
# https://github.com/zsh-users/zsh-syntax-highlighting/blob/master/docs/highlighters.md
# For (u)rxvt and gnome-terminal users,
# removing the 'cursor' highlighter will fix the disappearing cursor problem
zhighlighters=(main brackets cursor)
#
# SSH
#
# Load these ssh identities with the ssh module
zssh_ids=(id_rsa id_rsa.github id_rsa.bitbucket)
#
# Pacman
#
# Set (optional) pacman front-end.
#zpacman_frontend='powerpill'
# Load any helper scripts as defined here
#zpacman_helper=(aur)
source ~/.shell_prompt.sh
# antigen
source /usr/share/zsh/scripts/antigen/antigen.zsh
## antigen scripts
antigen bundle supercrabtree/k
## antigen done
antigen apply
# disable auto correct of commands from Utility
unsetopt CORRECT
# why would you type 'cd dir' if you could just type 'dir'?
setopt AUTO_CD
# Now we can pipe to multiple outputs!
setopt MULTIOS
# 10 second wait if you do something that will delete everything. I wish I'd had this before...
setopt RM_STAR_WAIT
# If I could disable Ctrl-s completely I would!
setopt NO_FLOW_CONTROL
# Who doesn't want home and end to work?
bindkey '\e[1~' beginning-of-line
bindkey '\e[4~' end-of-line
#
# Variables
#
export BROWSER="google-chrome-beta"
export EDITOR="vim"
export PATH="${PATH}:${HOME}/.local/bin:${HOME}/.bin/"
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=gasp -Dswing.aatext=true -Dawt.useSystemAAFontSettings=gasp -Dsun.java2d.xrender=true'
#
# Alias stuff
#
# modified commands
alias more='less'
alias df='df -h'
alias du='du -h -c'
alias k='k -h'
alias nano='nano -w'
alias ping='ping -c 5'
alias dmesg='dmesg -HL'
alias scp='scp -p'
alias wget='wget -c'
alias 'ps?'='echo "USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND" && ps uax | grep'
alias cal='cal -m'
alias makepkg='makepkg -s'
alias scrot='maim'
alias steam-wine='WINEDEBUG=-all wine ~/.wine/drive_c/Program\ Files/Steam/Steam.exe >/dev/null 2>&1 &'
alias steam='STEAM_FRAME_FORCE_CLOSE=1 steam'
alias cower='cower -c'
# new commands
alias da='date "+%A, %B %d, %Y [%T]"'
alias du1='du --max-depth=1'
alias hist='history | grep' # requires an argument
alias openports='ss --all --numeric --processes --ipv4 --ipv6'
alias pgg='ps -Af | grep' # requires an argument
alias c='clear'
alias cdc='cd; clear'
alias ssr='simplescreenrecorder'
#------------------------------
# Comp stuff
#------------------------------
#- complete powerpill the same as pacman
# compdef _pacman powerpill=pacman
#- complete trash the same as rm
compdef _rm trash
# color man pages
man() {
env LESS_TERMCAP_mb=$'\E[01;31m' \
LESS_TERMCAP_md=$'\E[01;38;5;74m' \
LESS_TERMCAP_me=$'\E[0m' \
LESS_TERMCAP_se=$'\E[0m' \
LESS_TERMCAP_so=$'\E[38;5;246m' \
LESS_TERMCAP_ue=$'\E[0m' \
LESS_TERMCAP_us=$'\E[04;38;5;146m' \
man "$@"
}
# vim: set ts=2 sw=2 et:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment