Skip to content

Commit

Permalink
Adding Mac howto to MD (credits goess to Alex)
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Dvorak committed Jan 13, 2014
1 parent 9e7499b commit daa2c5a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,21 @@ SOURCE CODE INSTALLATION
* Configure `hh` as described below.


MAC OS
------
* install http://www.macports.org
* configure using:

`env CFLAGS="-I/opt/local/include -I/usr/include" LDFLAGS="-L/opt/local/lib -L/usr/lib" ./configure`

* finish the installation

`make && make install`

* Configure `hh` as described below.



CONFIGURATION
------------
* add
Expand Down
2 changes: 1 addition & 1 deletion src/hstr.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ int print_prompt()
char *user = getenv(ENV_VAR_USER);
int xoffset = 1;

mvwprintw(stdscr, xoffset, Y_OFFSET_PROMPT, "%s@%s$ ", user, hostname);
mvwprintw(stdscr, xoffset, Y_OFFSET_PROMPT, "%s@%s:$ ", user, hostname);
refresh();

return xoffset+strlen(user)+1+strlen(hostname)+1;
Expand Down

0 comments on commit daa2c5a

Please sign in to comment.