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

@@ -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