set LS_COLORS for colorized support in ls and other tools
This commit is contained in:
@@ -16,6 +16,14 @@ elif [ -n "$SHELL" ];then
|
||||
source $DOTFILE_DIR/bash_tools/theme_bash.sh
|
||||
fi
|
||||
|
||||
# For references:
|
||||
# https://askubuntu.com/questions/466198/how-do-i-change-the-color-for-directories-with-ls-in-the-console
|
||||
|
||||
#LS_COLORS=$LS_COLORS:'di=1;35:su=0;31:'
|
||||
source $DOTFILE_DIR/bash_tools/ls_colors_theme.sh
|
||||
alias ls='ls --color=auto'
|
||||
|
||||
# get ipinfo of the machine
|
||||
function ipinfo(){
|
||||
local api_str="http://ip-api.com/json/$1?fields=query,country,regionName,city,district,zip,isp,org,reverse,mobile,proxy,hosting"
|
||||
if ! hash python; then
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
|
||||
|
||||
# display git status
|
||||
export GIT_PS1_SHOWDIRTYSTATE=1
|
||||
export PS1='\[\e[0;32m\]\w\[\e[01;31m\]$(__git_ps1 " (%s)")\[\e[00m\] '
|
||||
export PS1='\[\e[0;32m\]\w\[\e[01;31m\]$(__git_ps1 " (%s)")\[\e[00m\]$ '
|
||||
|
||||
@@ -33,6 +33,6 @@ local vcs_branch='${vcs_info_msg_0_}'
|
||||
|
||||
#PROMPT="%F{magenta}› ${current_dir}${vcs_branch} "
|
||||
|
||||
PROMPT=" %F{106}${current_dir}%f${vcs_branch} "
|
||||
PROMPT=" %F{106}${current_dir}%f${vcs_branch}$ "
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user