diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2016-06-09 23:16:09 +1200 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2016-06-09 23:16:09 +1200 |
commit | 7f5a382eef0f6baf7cd86f96074f2517e479e869 (patch) | |
tree | 3dc85875874debe4d71f45b8c68347206710e79c | |
parent | Remove ancient IRC quote (diff) | |
download | dotfiles-7f5a382eef0f6baf7cd86f96074f2517e479e869.tar.gz dotfiles-7f5a382eef0f6baf7cd86f96074f2517e479e869.zip |
Switch from prompt image to plain text
More compatible, want to display this in Cgit as well
-rw-r--r-- | README.markdown | 14 | ||||
-rw-r--r-- | bash/bashrc.d/prompt.bash | 2 | ||||
-rw-r--r-- | prompt.png | bin | 9266 -> 0 bytes |
3 files changed, 12 insertions, 4 deletions
diff --git a/README.markdown b/README.markdown index 147d4428..b1a08af4 100644 --- a/README.markdown +++ b/README.markdown @@ -131,9 +131,17 @@ after testing `BASH_VERSINFO` appropriately. When I use any other Bourne-compatible shell, I’m generally happy to accept its defaults for interactive behavior. -My prompt looks something like this: - -![Bash prompt](prompt.png) +A terminal session with my prompt looks something like this: + + [tom@conan:~/.dotfiles](git:master+!)$ git status + M README.markdown + M bash/bashrc.d/prompt.bash + A init + [tom@conan:~/.dotfiles](git:master+!)$ foobar + foobar: command not found + [tom@conan:~/.dotfiles](git:master+!)<127>$ sleep 5 & + [1] 28937 + [tom@conan:~/.dotfiles](git:master+!){1}$ It expands based on context to include these elements in this order: diff --git a/bash/bashrc.d/prompt.bash b/bash/bashrc.d/prompt.bash index 3eed8b24..eee81d95 100644 --- a/bash/bashrc.d/prompt.bash +++ b/bash/bashrc.d/prompt.bash @@ -21,8 +21,8 @@ prompt() { # Set up prompt, including optional PROMPT_PREFIX and PROMPT_SUFFIX # variables PS1='[\u@\h:\w]' - PS1=$PS1'$(prompt job)' PS1=$PS1'$(prompt vcs)' + PS1=$PS1'$(prompt job)' PS1=$PS1'$(prompt ret)' PS1='${PROMPT_PREFIX}'$PS1 PS1=$PS1'${PROMPT_SUFFIX}' diff --git a/prompt.png b/prompt.png Binary files differdeleted file mode 100644 index 75e7176e..00000000 --- a/prompt.png +++ /dev/null |