Skip to content
This repository has been archived by the owner on Feb 1, 2021. It is now read-only.

Commit

Permalink
Fix bash-completion error && Update bash prompt theme
Browse files Browse the repository at this point in the history
  • Loading branch information
ziwon committed Jan 20, 2019
1 parent 4dc220a commit 8609275
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
8 changes: 8 additions & 0 deletions bash/.bash_profile
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,14 @@ for file in ~/.{path,bash_prompt,exports,aliases,functions,extra,pureline,pureli
done;
unset file;

# Source bash completion
if [ -d /usr/local/etc/bash_completion.d ]; then
for file in $(echo /usr/local/etc/bash_completion.d/*sh); do
source $file
done;
fi;
unset file;

# Case-insensitive glokbbing (used in pathname expansion)
shopt -s nocaseglob;

Expand Down
11 changes: 7 additions & 4 deletions bash/.pureline.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,21 @@ PL_COLORS[On_MyRed]='\[\e[48;5;196m\]'
PL_COLORS[MyDarkGrey]='\[\e[38;5;240m\]'
PL_COLORS[On_MyDarkGrey]='\[\e[48;5;240m\]'

PL_COLORS[MyPurple]='\[\e[38;5;89m\]'
PL_COLORS[On_MyPurple]='\[\e[48;5;89m\]'
PL_COLORS[MyPurple]='\[\e[38;5;168m\]'
PL_COLORS[On_MyPurple]='\[\e[48;5;168m\]'

PL_COLORS[MyGreen]='\[\e[38;5;83m\]'
PL_COLORS[On_MyGreen]='\[\e[48;5;83m\]'

PL_COLORS[MyLightBlue]='\[\e[38;5;110m\]'
PL_COLORS[On_MyLightBlue]='\[\e[48;5;110m\]'

# All modules are enabled. Uncomment/comment to enable/disable a module
declare -a PL_MODULES=(
# Module Background Foreground
'time_module MyLightGrey Black'
'battery_module MyBlue Black'
'user_module MyLime Black'
'user_module MyLightBlue Black'
'ssh_module MyYellow Black'
'virtual_env_module MyBlue Black'
'path_module MyBlue Black'
Expand All @@ -54,7 +57,7 @@ PL_USER_USE_IP=false
PL_SSH_SHOW_HOST=true
PL_SSH_USE_IP=true
PL_GIT_DIRTY_FG=Black
PL_GIT_DIRTY_BG=MyDarkGrey
PL_GIT_DIRTY_BG=MyPurple
PL_GIT_AHEAD=true
PL_GIT_MODIFIED=true
PL_GIT_STAGED=true
Expand Down
4 changes: 3 additions & 1 deletion pyenv/init
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ PY3_VER=3.7.1

sh ./fix-mojave
sh ./fix-pyenv $PY2_VER zlib
sh ./fix-pyenv $PY3_VER zlib sqlite
sh ./fix-pyenv $PY3_VER zlib sqlite

pyenv global $PY3_VER

0 comments on commit 8609275

Please sign in to comment.