home/bash | .bashrc cleanup

This commit is contained in:
Don Harper 2025-07-11 20:23:23 -05:00
parent 445b5c7e0c
commit 9a271e3d45

View file

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