Move yash configuration to the .config directory

This commit is contained in:
2025-08-03 17:18:01 +02:00
parent 5a317a37cf
commit 2b570479bc
3 changed files with 2 additions and 1 deletions

1
.config/yash/profile Symbolic link
View File

@@ -0,0 +1 @@
../../.profile

26
.config/yash/rc Executable file
View File

@@ -0,0 +1,26 @@
# Firstly, load the common customization script.
. --autoload --no-alias initialization/common
# Undo some standard configuration.
export YASH_PS1='${LOGNAME}@${HOSTNAME%%.*}[$(date +%k:%M)]: '\
'${${${PWD:/~/\~}##*/}:-$PWD} ${{SHLVL-0}:/1}\$ '
export YASH_PS1R='${{?:/0/}:+\\fr.$?\\fd. }'
unset -f sh
# Clear the screen with Ctrl-L.
bindkey --emacs '\^L' clear-and-redraw-all
bindkey --vi-insert '\^L' clear-and-redraw-all
bindkey --vi-command '\^L' clear-and-redraw-all
# Programming environment.
command -v rbenv >/dev/null 2>&1 && eval "$(rbenv init -)"
command -v fastfetch >/dev/null 2>&1 && fastfetch
read_project_env() {
test -x .env.sh && . .env.sh || true
}
read_project_env
YASH_AFTER_CD="read_project_env"
# vim: set ft=sh: