From a619b0b47e92758378a9cfa6d11791119c9ff311 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Thu, 5 Feb 2026 23:17:49 +0100 Subject: [PATCH] shell: add a4i alias and set MANPATH --- shell/.config/shellconfig/aliases.sh | 8 ++++++++ shell/.profile | 8 ++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/shell/.config/shellconfig/aliases.sh b/shell/.config/shellconfig/aliases.sh index c7a14df..b4fe86f 100644 --- a/shell/.config/shellconfig/aliases.sh +++ b/shell/.config/shellconfig/aliases.sh @@ -25,6 +25,14 @@ alias nocaps='setxkbmap pl -option ctrl:nocaps' alias fixdp='xrandr --output DP-0 --right-of DP-2' alias a4='COLORTERM=truecolor TERM=xterm-256color a4' +a4i() { + local Q="${@:-}" + local NAME=$(a4 -l | grep '^ ' | fzy -q "$Q" | tr '\t' ' ' | cut -d' ' -f6-) + if [ -n "$NAME" ]; then + a4 -a "$NAME" + fi +} + tn() { if [ $# -eq 0 ]; then tmux new diff --git a/shell/.profile b/shell/.profile index 5e21614..e476c82 100644 --- a/shell/.profile +++ b/shell/.profile @@ -17,18 +17,22 @@ export VISUAL=nvim if [ -n "$BASH_VERSION" ]; then # include .bashrc if it exists if [ -f "$HOME/.bashrc" ]; then - . "$HOME/.bashrc" + . "$HOME/.bashrc" fi fi for dir in ~/.cargo/bin ~/go/bin ~/.local/bin ~/bin; do if [ -d "$dir" ]; then - PATH="$dir:$PATH" + PATH="$dir:$PATH" fi done export PATH +if [ -d ~/.local/share/man ]; then + export MANPATH="$HOME/.local/share/man:$MANPATH" +fi + # start X or Hyprland at login if [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" -a "$(tty)" = /dev/tty1 ]; then if which /usr/bin/sx > /dev/null; then