aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2016-08-15 11:25:51 +1200
committerTom Ryder <tom@sanctum.geek.nz>2016-08-15 11:25:51 +1200
commit7ccd8a1f133f8699135a49608693a963cdc5efaa (patch)
tree0f8110ebab42b1f375290aa4791dfb488bda73cb
parentInstate some actual real zsh configuration (diff)
downloaddotfiles-7ccd8a1f133f8699135a49608693a963cdc5efaa.tar.gz
dotfiles-7ccd8a1f133f8699135a49608693a963cdc5efaa.zip
Remove square brackets around prompt
Just noise
-rw-r--r--README.markdown8
-rw-r--r--bash/bashrc.d/prompt.bash2
-rw-r--r--pdksh/pdkshrc.d/prompt.pdksh2
3 files changed, 6 insertions, 6 deletions
diff --git a/README.markdown b/README.markdown
index 191371f4..b8d9f89d 100644
--- a/README.markdown
+++ b/README.markdown
@@ -133,15 +133,15 @@ defaults for interactive behavior.
A terminal session with my prompt looks something like this:
- [tom@conan:~/.dotfiles](git:master+!)$ git status
+ tom@conan:~/.dotfiles(git:master+!)$ git status
M README.markdown
M bash/bashrc.d/prompt.bash
A init
- [tom@conan:~/.dotfiles](git:master+!)$ foobar
+ tom@conan:~/.dotfiles(git:master+!)$ foobar
foobar: command not found
- [tom@conan:~/.dotfiles](git:master+!)<127>$ sleep 5 &
+ tom@conan:~/.dotfiles(git:master+!)<127>$ sleep 5 &
[1] 28937
- [tom@conan:~/.dotfiles](git:master+!){1}$
+ 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 b5ac74b1..2a18c24c 100644
--- a/bash/bashrc.d/prompt.bash
+++ b/bash/bashrc.d/prompt.bash
@@ -24,7 +24,7 @@ prompt() {
fi
# Basic prompt shape
- PS1='[\u@\h:\w]'
+ PS1='\u@\h:\w'
# Add sub-commands; VCS, job, and return status checks
PS1=$PS1'$(prompt vcs)$(prompt job)$(prompt ret)'
diff --git a/pdksh/pdkshrc.d/prompt.pdksh b/pdksh/pdkshrc.d/prompt.pdksh
index c3db782b..4f4986b6 100644
--- a/pdksh/pdkshrc.d/prompt.pdksh
+++ b/pdksh/pdkshrc.d/prompt.pdksh
@@ -17,7 +17,7 @@ prompt() {
on)
# Set up prompt, including optional PROMPT_PREFIX and PROMPT_SUFFIX
# variables
- PS1='[\u@\h:\w]'
+ PS1='\u@\h:\w'
PS1=$PS1'$(prompt vcs)'
PS1=$PS1'$(prompt job)'
PS1='${PROMPT_PREFIX}'$PS1