From 5c4f1978a74e19cca4f3f65795f8df20f9cb3efe Mon Sep 17 00:00:00 2001 From: Anthony Perkins Date: Sat, 16 Mar 2024 20:38:55 +0000 Subject: [PATCH] Set up .profile for NetBSD --- roles/home-cli/files/profile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/roles/home-cli/files/profile b/roles/home-cli/files/profile index d06cd9c..14cb497 100644 --- a/roles/home-cli/files/profile +++ b/roles/home-cli/files/profile @@ -92,7 +92,7 @@ unset _flatpak_xdg_path # Basic exports. export HISTFILE="" -export PS1='\u@\h\$ ' +export PS1="$(id -un)@$(hostname -s)\$ " export TIME_STYLE=long-iso # Used by GNU 'ls'. # Bash-specific settings that will not work in other Bourne-compatible shells. @@ -137,6 +137,7 @@ else bind "^[[1;5C" em-next-word bind "^[[1;5D" ed-prev-word fi + ( set -o tabcomplete 2>/dev/null ) && set -o tabcomplete fi if [ "$(uname -s)" = NetBSD ] @@ -186,6 +187,9 @@ for dir in "$HOME/.local/bin" \ /opt/local/sbin \ /var/lib/flatpak/exports/bin \ /app/bin \ + /usr/pkg/bin \ + /usr/pkg/sbin \ + /usr/X11R7/bin \ /usr/X11R6/bin \ /usr/sbin \ /bin \