I'm working on adding various custom help screens to bash it. Currently, bash it has the following commands to show help screens:
<pre><code>
-bash-it
-plugin-help
+bash-it (will show all the help commands)
rails-help
git-help
</code></pre>
# Load all files
+# Themes
+THEMES="${BASH}/themes/*.bash"
+for config_file in $THEMES
+do
+ source $config_file
+done
+
# Library
LIB="${BASH}/lib/*.bash"
for config_file in $LIB
source $config_file
done
-# Themes
-THEMES="${BASH}/themes/*.bash"
-for config_file in $THEMES
-do
- source $config_file
-done
-
# Functions
FUNCTIONS="${BASH}/functions/*.bash"
for config_file in $FUNCTIONS
#!/bin/bash
-function rh {
- history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
-}
-
function ips {
ifconfig | grep "inet " | awk '{ print $2 }'
}
+function myip {
+ res=$(curl -s checkip.dyndns.org | grep -Eo '[0-9\.]+')
+ echo "Your public IP is: ${LIGHT_GREEN} $res ${NORMAL}"
+}
+
# View man documentation in Preview
pman () {
export HISTSIZE=5000
-export AUTOFEATURE=true autotest
\ No newline at end of file
+export AUTOFEATURE=true autotest
+
+function rh {
+ history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
+}
\ No newline at end of file
alias filemerge="open -a '/Developer/Applications/Utilities/FileMerge.app'"
alias safari="open -a safari"
alias firefox="open -a firefox"
-alias dashcode="open -a dashcode"
-
-function plugin-help() {
- echo "Plugin Help Screen"
- echo
- rails-help
- echo
- git-help
-}
\ No newline at end of file
+alias dashcode="open -a dashcode"
\ No newline at end of file