Created
April 24, 2017 21:41
-
-
Save CRTified/f801b2786189ea29075502e4df176a8c to your computer and use it in GitHub Desktop.
This file contains hidden or 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
################# | |
# 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 archive git-info history input utility meta custom \ | |
syntax-highlighting history-substring-search prompt completion) | |
################### | |
# MODULE SETTINGS # | |
################### | |
# | |
# Prompt | |
# | |
# Set your desired prompt here | |
zprompt_theme='liquidprompt' | |
# | |
# Utility | |
# | |
# Uncomment to enable command correction prompts | |
# See: http://zsh.sourceforge.net/Doc/Release/Options.html#Input_002fOutput | |
setopt CORRECT | |
# | |
# Environment | |
# | |
# Set the string below to the desired terminal title format string. | |
# The terminal title is redrawn upon directory change, however, variables like | |
# ${PWD} are only evaluated once. Use prompt expansion strings for dynamic data: | |
# http://zsh.sourceforge.net/Doc/Release/Prompt-Expansion.html#Simple-Prompt-Escapes | |
# The example below uses the following format: 'username@host:/current/directory' | |
ztermtitle='%n@%m:%~' | |
# | |
# Input | |
# | |
# Uncomment to enable double-dot expansion. | |
# This appends '../' to your input for each '.' you type after an initial '..' | |
zdouble_dot_expand='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, termite and gnome-terminal users, | |
# removing the 'cursor' highlighter will fix the disappearing cursor problem | |
zhighlighters=(main brackets) | |
# | |
# SSH | |
# | |
# Load these ssh identities with the ssh module | |
#zssh_ids=(id_rsa) | |
# | |
# Pacman | |
# | |
# Set (optional) pacman front-end. | |
#zpacman_frontend='powerpill' | |
# Load any helper scripts as defined here | |
#zpacman_helper=(aur) |
This file contains hidden or 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
# | |
# User configuration sourced by interactive shells | |
# | |
# Fix Keyboard | |
autoload zkbd | |
[[ ! -f ${ZDOTDIR:-$HOME}/.zkbd/$TERM ]] && zkbd | |
source ${ZDOTDIR:-$HOME}/.zkbd/$TERM | |
[[ -n ${key[Backspace]} ]] && bindkey "${key[Backspace]}" backward-delete-char | |
[[ -n ${key[Insert]} ]] && bindkey "${key[Insert]}" overwrite-mode | |
[[ -n ${key[Home]} ]] && bindkey "${key[Home]}" beginning-of-line | |
[[ -n ${key[PageUp]} ]] && bindkey "${key[PageUp]}" up-line-or-history | |
[[ -n ${key[Delete]} ]] && bindkey "${key[Delete]}" delete-char | |
[[ -n ${key[End]} ]] && bindkey "${key[End]}" end-of-line | |
[[ -n ${key[PageDown]} ]] && bindkey "${key[PageDown]}" down-line-or-history | |
[[ -n ${key[Up]} ]] && bindkey "${key[Up]}" up-line-or-search | |
[[ -n ${key[Left]} ]] && bindkey "${key[Left]}" backward-char | |
[[ -n ${key[Down]} ]] && bindkey "${key[Down]}" down-line-or-search | |
[[ -n ${key[Right]} ]] && bindkey "${key[Right]}" forward-char | |
# Global configs | |
# Lines configured by zsh-newuser-install | |
HISTFILE=~/.histfile | |
HISTSIZE=1000 | |
SAVEHIST=1000 | |
setopt autocd nomatch notify | |
unsetopt beep | |
bindkey -e | |
## Disable accessibility bus | |
export NO_AT_BRIDGE=1 | |
## Add alias for config managing | |
alias config='/usr/bin/git --git-dir=/home/user/.dotfiles/ --work-tree=/home/user' | |
# Adds startup commands to setup base16-oceanicnext | |
BASE16_SHELL=$HOME/.config/base16-shell/ | |
[ -n "$PS1" ] && [ -s $BASE16_SHELL/profile_helper.sh ] && eval "$($BASE16_SHELL/profile_helper.sh)" | |
base16_oceanicnext | |
## Tell our environment about user-installed node tools | |
PATH="$HOME/bin:$NPM_PACKAGES/bin:$PATH" | |
# Add some stuff for NPM | |
## NPM packages in homedir | |
NPM_PACKAGES="$HOME/.npm-packages" | |
## Unset manpath so we can inherit from /etc/manpath via the `manpath` command | |
unset MANPATH # delete if you already modified MANPATH elsewhere in your configuration | |
MANPATH="$NPM_PACKAGES/share/man:$(manpath)" | |
## Tell Node about these packages | |
NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH" | |
# Source zim | |
if [[ -s ${ZDOTDIR:-${HOME}}/.zim/init.zsh ]]; then | |
source ${ZDOTDIR:-${HOME}}/.zim/init.zsh | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment