mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-11-22 14:48:25 -06:00
bash: profile updates
This commit is contained in:
2 files changed
+10
-8
No files matched your search
+2
-2
@@ -1,7 +1,5 @@
|
||||
shopt -s globstar
|
||||
|
||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||
|
||||
PATH="${ASDF_DATA_DIR:-$HOME/.asdf}/shims:$PATH"
|
||||
PATH=/usr/local/sbin:/usr/local/bin:~/bin:/usr/local/share/npm/bin:$PATH
|
||||
export PATH=$PATH:$HOME
|
||||
@@ -114,3 +112,5 @@ export LESS_TERMCAP_us=$'\e'"[1;32m"
|
||||
[ -s "$HOME/.config/broot/launcher/bash/br" ] && source "$HOME/.config/broot/launcher/bash/br"
|
||||
|
||||
# source /Users/proctor/.config/broot/launcher/bash/br
|
||||
#
|
||||
[[ -f ~/.bashrc ]] && . ~/.bashrc
|
||||
@@ -6,16 +6,14 @@ if [[ $- != *i* ]] ; then
|
||||
return
|
||||
fi
|
||||
|
||||
|
||||
# came from Aaron Lasseigne (AaronLasseigne on GitHub)
|
||||
battery_status()
|
||||
{
|
||||
battery_status() {
|
||||
HEART='♥ '
|
||||
|
||||
NON='\[\e[0m\]'
|
||||
RED='\[\e[0;31m\]'
|
||||
|
||||
battery_info=`ioreg -rc AppleSmartBattery`
|
||||
battery_info=$(ioreg -rc AppleSmartBattery)
|
||||
current_charge=$(echo $battery_info | grep -o '"CurrentCapacity" = [0-9]\+' | cut -d ' ' -f 3)
|
||||
total_charge=$(echo $battery_info | grep -o '"MaxCapacity" = [0-9]\+' | cut -d ' ' -f 3)
|
||||
|
||||
@@ -25,11 +23,11 @@ battery_status()
|
||||
fi
|
||||
|
||||
echo -n "${RED}"
|
||||
for i in `seq 1 $charged_slots`; do echo -n "$HEART"; done
|
||||
for i in $(seq 1 $charged_slots); do echo -n "$HEART"; done
|
||||
echo -n "${NON}"
|
||||
|
||||
if [[ $charged_slots -lt 10 ]]; then
|
||||
for i in `seq 1 $(echo "10-$charged_slots" | bc)`; do echo -n "$HEART"; done
|
||||
for i in $(seq 1 $(echo "10-$charged_slots" | bc)); do echo -n "$HEART"; done
|
||||
fi
|
||||
}
|
||||
|
||||
@@ -41,3 +39,7 @@ export XML_CATALOG_FILES=/usr/local/etc/xml/catalog
|
||||
export PATH="$PATH:$HOME/.rvm/bin"
|
||||
|
||||
# source ~/.config/broot/launcher/bash/br
|
||||
|
||||
if which direnv 2>/dev/null; then
|
||||
eval "$(direnv hook bash)"
|
||||
fi
|
||||
Reference in new issue
Block a user