Files
RescueBRU/customcd/files/root/zshrc.rescuebru
2026-03-03 19:53:38 -05:00

51 lines
1.2 KiB
Plaintext

# zshrc.rescuebru
# Rescue CD Backup & Restore Utility zshrc configuration
# version 7.2.5
# Rod Wright 1/16/2024
# Refer to CHANGELOG file for details.
# -----------------------------------------------------------------------------
#
# This file is based on the configuration written by
# Bruno Bonfils, <asyd@debian-fr.org>
# Written since summer 2001
#
# My functions (don't forget to modify fpath before call compinit !!)
fpath=($HOME/.zsh/functions $fpath)
# colors
eval `dircolors $HOME/.zsh/colors`
autoload -U zutil
autoload -U compinit
autoload -U complist
bindkey '\e[A' history-search-backward
bindkey '\e[B' history-search-forward
bindkey '^K' kill-whole-line
bindkey "\e[H" beginning-of-line # Home (xorg)
bindkey "\e[1~" beginning-of-line # Home (console)
bindkey "\e[4~" end-of-line # End (console)
bindkey "\e[F" end-of-line # End (xorg)
bindkey "\e[2~" overwrite-mode # Ins
bindkey "\e[3~" delete-char # Delete
bindkey '\eOH' beginning-of-line
bindkey '\eOF' end-of-line
# Activation
compinit
# Resource files
for file in $HOME/.zsh/rc/*.rc; do
source $file
done
# Eject the CD
/usr/bin/eject >/dev/null 2>&1
# Start rescuebru
if [ "$TTY" = "/dev/tty1" ]; then
/root/rescuebru/rescuebru
fi