From 02e04d2d142d9e43881a2f893fcdeec19b461626 Mon Sep 17 00:00:00 2001 From: jason Date: Sat, 16 Sep 2023 16:51:04 -0600 Subject: openbsd updates --- bash/.bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bash') diff --git a/bash/.bashrc b/bash/.bashrc index 0684e75..364d243 100644 --- a/bash/.bashrc +++ b/bash/.bashrc @@ -153,7 +153,7 @@ if [ -x /opt/homebrew/bin/pyenv ]; then eval "$(pyenv init --path)" eval "$(pyenv init -)" fi -if [ -x /usr/local/bin/pyenv ]; then +if [[ -x /usr/local/bin/pyenv || -x $HOME/bin/pyenv ]]; then # FreeBSD, probably linux eval "$(pyenv init -)" fi @@ -181,7 +181,7 @@ fi [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \ source /usr/local/share/bash-completion/bash_completion.sh -if [[ $OS_NAME == "FreeBSD" ]]; then +if [[ $OS_NAME == "FreeBSD" || $OS_NAME == "OpenBSD" ]]; then export XDG_RUNTIME_DIR=/var/run/user/`id -u` fi ####### @@ -234,7 +234,7 @@ export HISTCONTROL="ignoredups" export HISTIGNORE="ls:cd" # Aliases -alias ls='ls --color' +#alias ls='ls --color' #alias fixfileperm='find /music -type f -exec chmod 0644 {} \;' #alias cleanremotebranches='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d; git branch -r --merged master | grep -iv "master" | sed "s/origin\///" | xargs -n 1 git push --delete origin' alias ducks='du -cks * |sort -rn |head -11' -- cgit v1.2.1