-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
26 additions
and
3 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
os: | ||
- linux | ||
- osx | ||
language: generic | ||
sudo: required | ||
dist: trusty | ||
env: SWIFT_VERSION=5.0.1 | ||
osx_image: xcode10.2 | ||
install: | ||
- eval "$(curl -sL https://swiftenv.fuller.li/install.sh)" | ||
script: | ||
- swift build |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,29 @@ | ||
# SwiftPrompt | ||
[](https://travis-ci.org/hanjoes/swift-prompt) | ||
|
||
Prompt script built using Swift. | ||
# Swift Prompt | ||
|
||
Prompt command executor built using Swift. | ||
|
||
# Features | ||
|
||
## Information Rich | ||
It provides below information: | ||
* user login | ||
* host ip address | ||
* git status | ||
|
||
## Non-blocking | ||
The "swift_prompt_nanny" is a daemon meant for synchronizing your repository with remote. It kicks in every set amount of seconds (currently hard-coded 10s). Press "ENTER" to continue if you see a question mark blinking (shown in the demo below). | ||
|
||
# Usage | ||
|
||
Add the following line to your shell application's resource file: | ||
|
||
```bash | ||
PROMPT_COMMAND='PS1="`/path/to/SwiftPrompt`"' | ||
PROMPT_COMMAND="/path/to/swift_prompt" # make sure nanny is in the same folder | ||
PS1 = "> " # or your favourate prompt script. | ||
``` | ||
|
||
# Demo | ||
|
||
 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.