1
0
mirror of https://github.com/bertptrs/vimconfig.git synced 2025-12-25 12:30:32 +01:00

Move zsh config to its own directory.

This commit is contained in:
Bert Peters
2016-12-27 19:05:43 +01:00
parent bb77c0a475
commit 0e57e08dee
9 changed files with 9 additions and 12 deletions

1
zsh/.config/zsh/.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.zcompdump

View File

@@ -0,0 +1,2 @@
typeset -g -A key

View File

@@ -13,20 +13,13 @@ fi
#######################
autoload zkbd
function zkbd_file() {
[[ -f ~/.zkbd/${TERM}-${VENDOR}-${OSTYPE} ]] && printf '%s' ~/".zkbd/${TERM}-${VENDOR}-${OSTYPE}" && return 0
[[ -f ~/.zkbd/${TERM}-${DISPLAY} ]] && printf '%s' ~/".zkbd/${TERM}-${DISPLAY}" && return 0
return 1
}
[[ ! -d ~/.zkbd ]] && mkdir ~/.zkbd
keyfile=$(zkbd_file)
if [[ $? -eq 0 ]]; then
keyfile="$XDG_CONFIG_HOME/zsh/zkbd/${TERM}"
if [[ -f ${keyfile} ]]; then
source "${keyfile}"
elif [[ -o interactive ]]; then
echo "Unable to load key data for special keys. Run zkbd to fix."
fi
unfunction zkbd_file; unset keyfile
unset keyfile
bindkey -e
# zshrc aliases

View File

@@ -1 +0,0 @@
screen-256color-unknown-linux-gnu

View File

@@ -1 +0,0 @@
xterm-256color-:1

View File

@@ -9,6 +9,9 @@ if [ -z $XDG_DATA_HOME ]; then
export XDG_DATA_HOME="$HOME/.local/share"
fi
# Move the remaining zsh installation
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
# Some systems do not set XDG_RUNTIME_DIR, create an alternative.
if [ -z $XDG_RUNTIME_DIR ]; then
if [ -n "$TMPDIR" ]; then