aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-03-05 16:20:27 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-03-05 16:20:27 -0300
commit8b9c38da3beebf748c6e73f699da41dec82c5225 (patch)
treee8237d7a94641ee505424a5ccccb828d0c0ceaa6
parentf00bc60ed714f24bf0b905f099cde2c663b3985c (diff)
downloadshellprompt-8b9c38da3beebf748c6e73f699da41dec82c5225.tar.gz
shellprompt-8b9c38da3beebf748c6e73f699da41dec82c5225.tar.bz2
Apply pristine bash.bashrc
-rw-r--r--files/bash.bashrc19
-rw-r--r--manifests/init.pp18
2 files changed, 17 insertions, 20 deletions
diff --git a/files/bash.bashrc b/files/bash.bashrc
index 27686d6..54687b1 100644
--- a/files/bash.bashrc
+++ b/files/bash.bashrc
@@ -16,10 +16,7 @@ if [ -z "${debian_chroot:-}" ] && [ -r /etc/debian_chroot ]; then
fi
# set a fancy prompt (non-color, overwrite the one in /etc/profile)
-#PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
-
-# set a fancy prompt
-. /etc/profile.d/prompt.sh
+PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
# Commented out, don't overwrite xterm -T "title" -n "icontitle" by default.
# If this is an xterm set the title to user@host:dir
@@ -32,13 +29,13 @@ fi
#esac
# enable bash completion in interactive shells
-if ! shopt -oq posix; then
- if [ -f /usr/share/bash-completion/bash_completion ]; then
- . /usr/share/bash-completion/bash_completion
- elif [ -f /etc/bash_completion ]; then
- . /etc/bash_completion
- fi
-fi
+#if ! shopt -oq posix; then
+# if [ -f /usr/share/bash-completion/bash_completion ]; then
+# . /usr/share/bash-completion/bash_completion
+# elif [ -f /etc/bash_completion ]; then
+# . /etc/bash_completion
+# fi
+#fi
# if the command-not-found package is installed, use it
if [ -x /usr/lib/command-not-found -o -x /usr/share/command-not-found/command-not-found ]; then
diff --git a/manifests/init.pp b/manifests/init.pp
index 56da9ea..23f53f4 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -7,13 +7,13 @@ class shellprompt {
ensure => present,
}
- # Ideally we should not manage this file, see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=675008
- #file { "/etc/bash.bashrc":
- # source => "puppet:///modules/shellprompt/bash.bashrc",
- # owner => "root",
- # group => "root",
- # mode => 0644,
- # ensure => present,
- # require => File['/etc/profile.d/prompt.sh'],
- #}
+ # TODO: remove this block in the future, as we're applying back jessie's version
+ file { "/etc/bash.bashrc":
+ source => "puppet:///modules/shellprompt/bash.bashrc",
+ owner => "root",
+ group => "root",
+ mode => 0644,
+ ensure => present,
+ require => File['/etc/profile.d/prompt'],
+ }
}