https://github.com/ryuslash/baps1
Some function(s) for $PS1
https://github.com/ryuslash/baps1
Last synced: over 1 year ago
JSON representation
Some function(s) for $PS1
- Host: GitHub
- URL: https://github.com/ryuslash/baps1
- Owner: ryuslash
- Created: 2012-05-17T17:28:38.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2016-02-26T20:29:55.000Z (over 10 years ago)
- Last Synced: 2025-04-22T17:17:04.004Z (over 1 year ago)
- Language: C
- Homepage: http://ryuslash.org/projects/baps1.html
- Size: 6.84 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
Awesome Lists containing this project
README
* Benjamin A's PS1
baps1 is meant to be used in your shell prompt and shows the current
tty and time since the last call to baps1 for that tty, which can give
you a rough estimation of the time duration of the last command. It is
basically like calling every command with ~time ~ (plus the
time it took you to write out the command).
Example output: ~p1:5m43s~
To use it as it was intended put the following in your ~PS1~ or
~PROMPT~ variable, depending on whether you use ~bash~ or ~zsh~:
#+BEGIN_SRC shell-script
PS1="\$(/path/to/baps1)"
#+END_SRC
Or, if you like single quotes, use:
#+BEGIN_SRC shell-script
PS1='$(/path/to/baps1)'
#+END_SRC