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 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
|
||||||
|
|||||||
@@ -17,18 +17,22 @@ export VISUAL=nvim
|
|||||||
if [ -n "$BASH_VERSION" ]; then
|
if [ -n "$BASH_VERSION" ]; then
|
||||||
# include .bashrc if it exists
|
# include .bashrc if it exists
|
||||||
if [ -f "$HOME/.bashrc" ]; then
|
if [ -f "$HOME/.bashrc" ]; then
|
||||||
. "$HOME/.bashrc"
|
. "$HOME/.bashrc"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for dir in ~/.cargo/bin ~/go/bin ~/.local/bin ~/bin; do
|
for dir in ~/.cargo/bin ~/go/bin ~/.local/bin ~/bin; do
|
||||||
if [ -d "$dir" ]; then
|
if [ -d "$dir" ]; then
|
||||||
PATH="$dir:$PATH"
|
PATH="$dir:$PATH"
|
||||||
fi
|
fi
|
||||||
done
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user