Skip to content

Instantly share code, notes, and snippets.

View nullpo-head's full-sized avatar

Takaya Saeki nullpo-head

View GitHub Profile
@nullpo-head
nullpo-head / ps.sh
Last active June 19, 2018 08:38
OS icon PS script
# Set a simple prompt with an OS icon!
if [ `uname` = Darwin ]; then
SYSTEM_ICON=""
PS_COL=${PS_COL:="38;5;6"}
elif [ -n "`cat /proc/version | grep Microsoft`" ]; then
SYSTEM_ICON=""
PS_COL=${PS_COL:="38;5;70"}
elif [ `uname` = Linux ]; then
SYSTEM_ICON=""
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "config.h"
#include "fpu_c.h"
#include "print.h"
#include <signal.h>
#include <math.h>