dotfiles/bash/.bashrc.d/env
2026-07-04 17:48:49 +02:00

14 lines
236 B
Bash

#!/usr/bin/env bash
export PATH=$HOME/.local/share/bin/:$PATH
if which less; then
export PAGER=less
fi
for editor in "vim" "nvim" "vi" "nano" "ed"; do
if which $editor >/dev/null 2>&1; then
export EDITOR=$editor
break
fi
done