From a28ddb4b2135c42da551e7ef115c67b8d781356e Mon Sep 17 00:00:00 2001 From: TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> Date: Thu, 6 Feb 2025 12:58:53 +0900 Subject: modified shell/profile, modified zsh/scripts.zsh --- ar/.config/shell/profile | 5 +++++ ar/.config/zsh/scripts.zsh | 12 ++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/ar/.config/shell/profile b/ar/.config/shell/profile index 3a9721c..14d6fa4 100644 --- a/ar/.config/shell/profile +++ b/ar/.config/shell/profile @@ -229,6 +229,11 @@ export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # This line will break some DMs. export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export ZPLUGINDIR="$XDG_SCRIPTS_HOME/zsh" +### --- SDCV --- ### +export STARDICT_DATA_DIR="$XDG_DATA_HOME/dic" +export STARDICT_HISTFILE="$XDG_DATA_HOME/history/dic" +export SDCV_PAGER='less --quit-if-one-screen -RX' + ### --- SHORTCUTS --- ### [ ! -f "$XDG_CONFIG_HOME/shell/shortcutrc" ] && setsid -f shortcuts >/dev/null 2>&1 diff --git a/ar/.config/zsh/scripts.zsh b/ar/.config/zsh/scripts.zsh index 9341693..0fa7397 100644 --- a/ar/.config/zsh/scripts.zsh +++ b/ar/.config/zsh/scripts.zsh @@ -468,8 +468,6 @@ function man() { local page=$(command man -k . | fzf --prompt='Man> ' --exit-0 | awk '{print $1}') if [[ -n $page ]]; then nvim +"Man $page | only" - else - echo "Need to run 'sudo mandb -c' to update mandb." fi fi else @@ -615,6 +613,16 @@ if ls "${ZPLUGINDIR:-${XDG_SCRIPTS_HOME:-${HOME}/.local/bin}/zsh}/zsh-autosugges fi +########################################################################################### +########################################################################################### +### --- SDCV --- ### +function def() { + sdcv -n --utf8-output --color "$@" 2>&1 | \ + fold --width=$(tput cols) | \ + less --quit-if-one-screen -RX +} + + ########################################################################################### ########################################################################################### ### --- STOW --- ### -- cgit v1.2.3