From 9a271e3d4537493c5015f913ee873ea8d42e0d63 Mon Sep 17 00:00:00 2001 From: Don Harper Date: Fri, 11 Jul 2025 20:23:23 -0500 Subject: [PATCH] home/bash | .bashrc cleanup --- home/common/files/bash/bashrc | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/home/common/files/bash/bashrc b/home/common/files/bash/bashrc index bef081a..fda71f8 100755 --- a/home/common/files/bash/bashrc +++ b/home/common/files/bash/bashrc @@ -23,10 +23,11 @@ GREEN='' YELLOW='' RED='' NONE='' +PATH="${HOME}/bin:/run/wrappers/bin:${HOME}/.nix-profile/bin:/etc/profiles/per-user/${USER}/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:${HOME}/go/bin:${HOME}/.local/bin:${HOME}/.cargo/bin:${HOME}/.local/share/gem/ruby/latest/bin" +GOPATH="${HOME}/go" export NONE GREEN YELLOW RED -PATH="${HOME}/bin:/run/wrappers/bin:${HOME}/.nix-profile/bin:/etc/profiles/per-user/${USER}/bin:/nix/var/nix/profiles/default/bin:/run/current-system/sw/bin:${HOME}/go/bin:${HOME}/.local/bin" export PATH -export GOPATH="${HOME}/go" +export GOPATH if [ -f ${HOME}/.nix-profile/etc/profile.d/hm-session-vars.sh ] then @@ -57,18 +58,6 @@ export OS_SYS OS_REL OS_TYPE OS_CPU LESS # Set up path test -f "${HOME}/.bash_functions" && source "${HOME}/.bash_functions" test -d "${HOME}/bin/${HOSTNAME_SHORT}" && PATH="${PATH}:${HOME}/bin/${HOSTNAME_SHORT}" -test -d "${HOME}/bin/${OS_CPU}" && PATH="${PATH}:${HOME}/bin/${OS_CPU}" -test -d "${HOME}/.cargo/bin" && PATH="${PATH}:${HOME}/.cargo/bin" -test -d "${HOME}/.local/share/gem" && PATH="${PATH}:${HOME}/.local/share/gem/ruby/latest/bin" -test -d /usr/local/sbin && PATH="${PATH}:/usr/local/sbin" -test -d /usr/local/bin && PATH="${PATH}:/usr/local/bin" -test -d /sbin && PATH="${PATH}:/sbin" -test -d /usr/sbin && PATH="${PATH}:/usr/sbin" -test -d /usr/bin && PATH="${PATH}:/usr/bin" -test -d /bin && PATH="${PATH}:/bin" -export PATH - -#interactive login ? ##################################### ######### ######### @@ -99,8 +88,6 @@ then if [ $EUID == 0 ];then HISTNAME=root;fi HISTFILE="${HOME}/.bash_history.${HISTNAME}.${HOSTNAME_SHORT}.$(tty|cut -c10-)" export HISTFILE - # Switched to use tailscale ssh - # test -f "${HOME}/.bash_ssh" && source "${HOME}/.bash_ssh" PAGER=less LESS="-Rs"