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:
1
zsh/.config/zsh/.gitignore
vendored
Normal file
1
zsh/.config/zsh/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.zcompdump
|
||||
2
zsh/.config/zsh/.zkbd/xterm-256color.tmp
Normal file
2
zsh/.config/zsh/.zkbd/xterm-256color.tmp
Normal file
@@ -0,0 +1,2 @@
|
||||
typeset -g -A key
|
||||
|
||||
@@ -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
|
||||
@@ -1 +0,0 @@
|
||||
screen-256color-unknown-linux-gnu
|
||||
@@ -1 +0,0 @@
|
||||
xterm-256color-:1
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user