Skip to content

Commit aa8a566

Browse files
committed
resore PROMPT_COMMAND and add zsh suggestion
1 parent 921c2d6 commit aa8a566

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.devcontainer/features/bash-config/config/bash-config-rc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,13 @@
22

33
# default opinioned bash configuration
44

5-
# set the prompt
6-
export PS1="\[\033[1;34m\]\W \[\033[0m\]# "
7-
85
# enable enternal shared history
96
export HISTCONTROL=ignoreboth:erasedups
107
export HISTSIZE=-1
118
export HISTFILESIZE=-1
129
export SAVEHIST=-1
1310
export HISTFILE=$CONFIG_FOLDER/.bash_eternal_history
11+
export PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
1412

1513
# bash theme - partly inspired by https://github.com/ohmyzsh/ohmyzsh/blob/master/themes/robbyrussell.zsh-theme
1614
# from https://github.com/devcontainers/features/blob/main/src/common-utils/scripts/bash_theme_snippet.sh

.devcontainer/features/bash-config/config/bashrc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ if [ ! -f /one-time ]; then
1313

1414
# add your personal one time only (container creation) commands here
1515
# e.g. to add zsh in:-
16-
# apt-get update; apt-get install -y zsh
17-
# echo y | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)")
18-
# sed -i 's/robbyrussel/dst/' /root/.zshrc
16+
# apt-get update; apt-get install -y zsh
17+
# echo y | sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)")
18+
# sed -i 's/^ZSH_THEME.*/ZSH_THEME\=dst/' ~/.zshrc
1919

2020
touch /one-time
2121
fi

0 commit comments

Comments
 (0)