shell: add a4i alias and set MANPATH
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -29,6 +29,10 @@ 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
|
||||
|
||||
Reference in New Issue
Block a user