Fix few issues & improve framework functionality

- Fixed LSCOLORS from theme-and-appearance.sh
- Fixed ii() command in core plugin
- Stop using .bashrc as Oh-My-Bash profile, use .bash_profile instead
- Automate backport new version for old version users
- Added .editorconfig for future contribution
This commit is contained in:
Toan Nguyen
2017-11-08 15:25:22 +11:00
parent 7b7e0c8c67
commit b85f75f798
11 changed files with 168 additions and 66 deletions

View File

@@ -179,14 +179,14 @@ ffe () { /usr/bin/find . -name '*'"$@" ; } # ffe: Find file whose name end
# ii: display useful host related informaton
# -------------------------------------------------------------------
ii() {
echo -e "\nYou are logged on ${red}$HOST"
echo -e "\nAdditionnal information:$NC " ; uname -a
echo -e "\n${red}Users logged on:$NC " ; w -h
echo -e "\n${red}Current date :$NC " ; date
echo -e "\n${red}Machine stats :$NC " ; uptime
#echo -e "\n${red}Current network location :$NC " ; scselect
echo -e "\n${red}Public facing IP Address :$NC " ;myip
#echo -e "\n${red}DNS Configuration:$NC " ; scutil --dns
echo -e "\\nYou are logged on ${red}$HOST"
echo -e "\\nAdditionnal information:$NC " ; uname -a
echo -e "\\n${red}Users logged on:$NC " ; w -h
echo -e "\\n${red}Current date :$NC " ; date
echo -e "\\n${red}Machine stats :$NC " ; uptime
[[ "$OSTYPE" == darwin* ]] && echo -e "\\n${red}Current network location :$NC " ; scselect
echo -e "\\n${red}Public facing IP Address :$NC " ;myip
[[ "$OSTYPE" == darwin* ]] && echo -e "\\n${red}DNS Configuration:$NC " ; scutil --dns
echo
}
@@ -216,7 +216,6 @@ ffe () { /usr/bin/find . -name '*'"$@" ; } # ffe: Find file whose name end
else
du -hd 1
fi
elif [ $(uname) = "Linux" ]; then
if [ -n "$1" ]; then
du -h --max-depth=1 "$1"