shell: add a4i alias and set MANPATH

This commit is contained in:
2026-02-05 23:17:49 +01:00
parent 1e0263e5ed
commit a619b0b47e
2 changed files with 14 additions and 2 deletions

View File

@@ -25,6 +25,14 @@ alias nocaps='setxkbmap pl -option ctrl:nocaps'
alias fixdp='xrandr --output DP-0 --right-of DP-2' alias fixdp='xrandr --output DP-0 --right-of DP-2'
alias a4='COLORTERM=truecolor TERM=xterm-256color a4' 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() { tn() {
if [ $# -eq 0 ]; then if [ $# -eq 0 ]; then
tmux new tmux new

View File

@@ -29,6 +29,10 @@ done
export PATH export PATH
if [ -d ~/.local/share/man ]; then
export MANPATH="$HOME/.local/share/man:$MANPATH"
fi
# start X or Hyprland at login # start X or Hyprland at login
if [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" -a "$(tty)" = /dev/tty1 ]; then if [ -z "$DISPLAY" -a -z "$WAYLAND_DISPLAY" -a "$(tty)" = /dev/tty1 ]; then
if which /usr/bin/sx > /dev/null; then if which /usr/bin/sx > /dev/null; then