summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-06 12:58:53 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2025-02-06 12:58:53 +0900
commita28ddb4b2135c42da551e7ef115c67b8d781356e (patch)
tree3f98e4fa6333f355ba697e0a27dc34d99763a08e
parent80ba29c0e8557a6ac2905cdb4468562a312841e6 (diff)
modified shell/profile, modified zsh/scripts.zsh
-rw-r--r--ar/.config/shell/profile5
-rw-r--r--ar/.config/zsh/scripts.zsh12
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
@@ -617,6 +615,16 @@ fi
###########################################################################################
###########################################################################################
+### --- SDCV --- ###
+function def() {
+ sdcv -n --utf8-output --color "$@" 2>&1 | \
+ fold --width=$(tput cols) | \
+ less --quit-if-one-screen -RX
+}
+
+
+###########################################################################################
+###########################################################################################
### --- STOW --- ###
# run stow script from dotfiles repo
alias dstw=dotfeils_stw