Move yash configuration to the .config directory
This commit is contained in:
1
.config/yash/profile
Symbolic link
1
.config/yash/profile
Symbolic link
@@ -0,0 +1 @@
|
||||
../../.profile
|
26
.config/yash/rc
Executable file
26
.config/yash/rc
Executable 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:
|
Reference in New Issue
Block a user