Added Zim and Zsh configurations

This commit is contained in:
Eric Renfro 2018-12-23 11:20:18 -05:00
parent 037a934f00
commit fd3cf0e4d0
Signed by: psi-jack
GPG key ID: 14977F3A50D9A5BF
5 changed files with 175 additions and 0 deletions

3
.gitmodules vendored
View file

@ -4,3 +4,6 @@
[submodule ".tmux/plugins/tpm"]
path = .tmux/plugins/tpm
url = https://git.linux-help.org/psi-jack/tpm.git
[submodule ".zim"]
path = .zim
url = https://git.linux-help.org/psi-jack/zimfw.git

1
.zim Submodule

@ -0,0 +1 @@
Subproject commit 21696a4f703a170e93a2f99a5576f37eb4e5a733

96
.zimrc Normal file
View file

@ -0,0 +1,96 @@
#################
# 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 git-info history input utility custom \
syntax-highlighting history-substring-search prompt completion)
###################
# MODULE SETTINGS #
###################
#
# Prompt
#
# Set your desired prompt here
zprompt_theme='eriner'
#
# Completion
#
# set an optional host-specific filename for the completion cache file
# if none is provided, the default '.zcompdump' is used.
#zcompdump_file=".zcompdump-${HOST}-${ZSH_VERSION}"
#
# 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 cursor)
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'
#zpacman_frontend='pacmatic'
# Load any helper scripts as defined here
#zpacman_helper=(aur)
#zpacman_helper=(aur)

8
.zlogin Normal file
View file

@ -0,0 +1,8 @@
#
# User configuration sourced by login shells
#
# Initialize zim
[[ -s ${ZIM_HOME}/login_init.zsh ]] && source ${ZIM_HOME}/login_init.zsh

67
.zshrc Normal file
View file

@ -0,0 +1,67 @@
#if [[ -f /etc/solus-release ]]; then
# if [[ $TILIX_ID || $VTE_VERSION ]]; then
# echo "Loading VTE extensions..."
# source /usr/share/defaults/etc/profile.d/vte.sh
# fi
#fi
#precmd_functions+=(__vte_osc7)
#
# User configuration sourced by interactive shells
#
typeset -U PATH
export PATH
# Change default zim location
export ZIM_HOME=${ZDOTDIR:-${HOME}}/.zim
# Start zim
[[ -s ${ZIM_HOME}/init.zsh ]] && source ${ZIM_HOME}/init.zsh
# Fix the ESC+Backspace
bindkey -e
bindkey -e "^[[1;5C" forward-word
bindkey -e "^[[1;5D" backward-word
# Default Environment
export EDITOR=vim
export VISUAL=vim
export PAGER=less
export BORG_REPO=/mnt/backups/psi-jack/borg
#function custom_prompt() {
# VTE_PWD_THING="$(__vte_osc7)"
# PS1="$PS1$VTE_PWD_THING"
#}
if [[ -f /etc/solus-release ]]; then
export SSH_ASKPASS=/usr/lib64/seahorse/seahorse/ssh-askpass
if [[ $TILIX_ID || $VTE_VERSION ]]; then
source /usr/share/defaults/etc/profile.d/vte.sh
precmd_functions+=(__vte_osc7)
fi
fi
# Set GPG TTY
#export GPG_TTY=$(tty)
# Refresh gpg-agent tty in case user switches into an X session
#gpg-connect-agent updatestartuptty /bye >/dev/null
# Update SSH Agent Socket
#unset SSH_AGENT_PID
#if [[ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]]; then
# export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
#fi
# Disable Ctrl+S Scroll-Locking
stty -ixon
# Include local functions/aliases/environments:
while read f
do
source "$f"
done < <(find "${HOME}/.local/dotfiles/" -type f -name '*.zsh')