| File | Lines added | Lines deleted |
|---|---|---|
| README.md | 15 | 0 |
| src/hstr.c | 1 | 1 |
| File README.md changed (mode: 100644) (index 4dd203d..f0d4394) | |||
| ... | ... | SOURCE CODE INSTALLATION | |
| 40 | 40 | * Configure `hh` as described below. | * Configure `hh` as described below. |
| 41 | 41 | ||
| 42 | 42 | ||
| 43 | MAC OS | ||
| 44 | ------ | ||
| 45 | * install http://www.macports.org | ||
| 46 | * configure using: | ||
| 47 | |||
| 48 | `env CFLAGS="-I/opt/local/include -I/usr/include" LDFLAGS="-L/opt/local/lib -L/usr/lib" ./configure` | ||
| 49 | |||
| 50 | * finish the installation | ||
| 51 | |||
| 52 | `make && make install` | ||
| 53 | |||
| 54 | * Configure `hh` as described below. | ||
| 55 | |||
| 56 | |||
| 57 | |||
| 43 | 58 | CONFIGURATION | CONFIGURATION |
| 44 | 59 | ------------ | ------------ |
| 45 | 60 | * add | * add |
| File src/hstr.c changed (mode: 100644) (index 5d11a7b..823e4ba) | |||
| ... | ... | int print_prompt() | |
| 83 | 83 | char *user = getenv(ENV_VAR_USER); | char *user = getenv(ENV_VAR_USER); |
| 84 | 84 | int xoffset = 1; | int xoffset = 1; |
| 85 | 85 | ||
| 86 | mvwprintw(stdscr, xoffset, Y_OFFSET_PROMPT, "%s@%s$ ", user, hostname); | ||
| 86 | mvwprintw(stdscr, xoffset, Y_OFFSET_PROMPT, "%s@%s:$ ", user, hostname); | ||
| 87 | 87 | refresh(); | refresh(); |
| 88 | 88 | ||
| 89 | 89 | return xoffset+strlen(user)+1+strlen(hostname)+1; | return xoffset+strlen(user)+1+strlen(hostname)+1; |