Created
July 25, 2013 10:15
-
-
Save worldofchris/6078485 to your computer and use it in GitHub Desktop.
C64 .profile for bash
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear | |
export PS1=$ | |
free="$(( $(vm_stat | awk '/free/ {gsub(/\./, "", $3); print $3}') * 4096 / 1048576)) MiB free" | |
echo \*\*\*\* bash $BASH_VERSION \*\*\*\* | |
echo | |
echo $free | |
echo | |
echo READY. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment