mirror of
https://github.com/bertptrs/vimconfig.git
synced 2025-12-25 20:40: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
|
autoload zkbd
|
||||||
function zkbd_file() {
|
keyfile="$XDG_CONFIG_HOME/zsh/zkbd/${TERM}"
|
||||||
[[ -f ~/.zkbd/${TERM}-${VENDOR}-${OSTYPE} ]] && printf '%s' ~/".zkbd/${TERM}-${VENDOR}-${OSTYPE}" && return 0
|
if [[ -f ${keyfile} ]]; then
|
||||||
[[ -f ~/.zkbd/${TERM}-${DISPLAY} ]] && printf '%s' ~/".zkbd/${TERM}-${DISPLAY}" && return 0
|
|
||||||
return 1
|
|
||||||
}
|
|
||||||
|
|
||||||
[[ ! -d ~/.zkbd ]] && mkdir ~/.zkbd
|
|
||||||
keyfile=$(zkbd_file)
|
|
||||||
if [[ $? -eq 0 ]]; then
|
|
||||||
source "${keyfile}"
|
source "${keyfile}"
|
||||||
elif [[ -o interactive ]]; then
|
elif [[ -o interactive ]]; then
|
||||||
echo "Unable to load key data for special keys. Run zkbd to fix."
|
echo "Unable to load key data for special keys. Run zkbd to fix."
|
||||||
fi
|
fi
|
||||||
unfunction zkbd_file; unset keyfile
|
unset keyfile
|
||||||
|
|
||||||
bindkey -e
|
bindkey -e
|
||||||
# zshrc aliases
|
# 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"
|
export XDG_DATA_HOME="$HOME/.local/share"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Move the remaining zsh installation
|
||||||
|
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
|
||||||
|
|
||||||
# Some systems do not set XDG_RUNTIME_DIR, create an alternative.
|
# Some systems do not set XDG_RUNTIME_DIR, create an alternative.
|
||||||
if [ -z $XDG_RUNTIME_DIR ]; then
|
if [ -z $XDG_RUNTIME_DIR ]; then
|
||||||
if [ -n "$TMPDIR" ]; then
|
if [ -n "$TMPDIR" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user