From fb9eece5ce58d6a34ceaf0a774c35f8aca3b09e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Fri, 3 Oct 2025 08:07:40 +0200 Subject: [PATCH] yash: add config for yash shell --- shell/.config/shellconfig/aliases.sh | 2 +- shell/.profile | 4 +++- yash/.config/yash/profile | 3 +++ yash/.config/yash/rc | 17 +++++++++++++++++ 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 yash/.config/yash/profile create mode 100644 yash/.config/yash/rc diff --git a/shell/.config/shellconfig/aliases.sh b/shell/.config/shellconfig/aliases.sh index 19e0827..04d6c4f 100644 --- a/shell/.config/shellconfig/aliases.sh +++ b/shell/.config/shellconfig/aliases.sh @@ -46,5 +46,5 @@ tai() { } vf() { - vis "+fzf-files auto-files '$1'" + vis "+fzf-files auto-files $@" } diff --git a/shell/.profile b/shell/.profile index de4fc30..7f9659c 100644 --- a/shell/.profile +++ b/shell/.profile @@ -8,6 +8,8 @@ # for ssh logins, install and configure the libpam-umask package. #umask 022 +export LANG=pl_PL.UTF-8 + export EDITOR=vis export VISUAL=vis @@ -28,7 +30,7 @@ done export PATH # start X or Hyprland at login -if [[ -z "$DISPLAY" && -z "$WAYLAND_DISPLAY" && "$XDG_VTNR" -eq 1 ]]; then +if [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" -a "$XDG_VTNR" -eq 1 ]; then if which Hyprland > /dev/null && [ -d ~/.config/hypr ]; then exec Hyprland elif which river > /dev/null && [ -d ~/.config/river ]; then diff --git a/yash/.config/yash/profile b/yash/.config/yash/profile new file mode 100644 index 0000000..234901e --- /dev/null +++ b/yash/.config/yash/profile @@ -0,0 +1,3 @@ +#!/bin/sh + +[ -e ~/.profile ] && . ~/.profile diff --git a/yash/.config/yash/rc b/yash/.config/yash/rc new file mode 100644 index 0000000..886af11 --- /dev/null +++ b/yash/.config/yash/rc @@ -0,0 +1,17 @@ +# Firstly, load the common customization script. +. --autoload --no-alias initialization/common + +LANG=pl_PL.UTF-8 + +set -o vi + +[ -e ~/.config/shellconfig/aliases.sh ] && . ~/.config/shellconfig/aliases.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 + +# And add your own customization below. + +eval "$(zoxide init posix --hook prompt)"