mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-11-22 14:48:25 -06:00
bash: export LC_ALL to attempt to fix nvim and tmux unicode shifting
This commit is contained in:
1 file changed
+12
-15
+12
-15
@@ -7,6 +7,7 @@ PATH=$PATH:$HOME
|
||||
MANPATH=$MANPATH:/usr/local/opt/erlang/lib/erlang/man
|
||||
|
||||
export XDG_CONFIG_HOME=$HOME/.config
|
||||
export LC_ALL=en_US.UTF-8
|
||||
|
||||
set -o vi
|
||||
export EDITOR='nvim'
|
||||
@@ -18,14 +19,13 @@ if which brew 2>/dev/null && [[ -f $(brew --prefix)/etc/bash_completion ]]; then
|
||||
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)
|
||||
|
||||
@@ -35,11 +35,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
|
||||
}
|
||||
|
||||
@@ -57,19 +57,18 @@ safesource ~/.bash_local
|
||||
export PATH="/usr/local/heroku/bin:$PATH"
|
||||
|
||||
function repeat() {
|
||||
local count=$1;
|
||||
shift;
|
||||
local count=$1
|
||||
shift
|
||||
|
||||
echo "running '$@' for $count times"
|
||||
|
||||
for i in $(eval echo "{1..$count}")
|
||||
do
|
||||
for i in $(eval echo "{1..$count}"); do
|
||||
$@ || break
|
||||
done
|
||||
}
|
||||
|
||||
export NVM_DIR="/Users/sg0221754/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
|
||||
|
||||
### What did I do in git this past year?
|
||||
|
||||
@@ -89,13 +88,11 @@ function my_git_user_name() {
|
||||
git config --get user.name
|
||||
}
|
||||
|
||||
function my_commits_for_this_past_year()
|
||||
{
|
||||
function my_commits_for_this_past_year() {
|
||||
git log --author="$(my_git_user_name)" --after="$(end_of_last_year)" origin/master
|
||||
}
|
||||
|
||||
function truncate_logs()
|
||||
{
|
||||
function truncate_logs() {
|
||||
find log -type f -name "*.log" | xargs -I {} bash -c 'echo "" > {}'
|
||||
}
|
||||
|
||||
@@ -111,7 +108,7 @@ export LESS_TERMCAP_us=$'\e'"[1;32m"
|
||||
#if [ -e "${HOME}/.nix-profile/etc/profile.d/nix.sh" ]; then . "${HOME}/.nix-profile/etc/profile.d/nix.sh"; fi # added by Nix installer
|
||||
|
||||
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
||||
|
||||
[ -s "$HOME/.config/broot/launcher/bash/br" ] && source "$HOME/.config/broot/launcher/bash/br"
|
||||
|
||||
|
||||
Reference in new issue
Block a user