File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed
.devcontainer/features/bash-config/config Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change 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
96export HISTCONTROL=ignoreboth:erasedups
107export HISTSIZE=-1
118export HISTFILESIZE=-1
129export SAVEHIST=-1
1310export 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
Original file line number Diff line number Diff 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
2121fi
You can’t perform that action at this time.
0 commit comments