Switch to powerline prompt.

This commit is contained in:
2014-11-20 17:41:17 -08:00
parent b442af27e3
commit b22b1828f9
6 changed files with 82 additions and 5 deletions

View File

@@ -89,7 +89,7 @@ function digga() {
}
function shell_stats() {
history | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20
history 0 | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | nl | head -n20
}
function is_ssh() {
@@ -260,3 +260,7 @@ function track_modified {
echo "Finding..."
find $1 -newer $timestamp_file
}
function python_module_path {
python -c "import os, $1; print(os.path.dirname($1.__file__))"
}