File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
.devcontainer/features/bash-config/config Expand file tree Collapse file tree 2 files changed +2
-4
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 @@ -12,5 +12,5 @@ if [[ ! -f $CONFIG_FOLDER/bashrc ]] ; then
1212fi
1313
1414# hook in the config to the root account
15- ln -s $CONFIG_FOLDER /inputrc /root/.inputrc
15+ ln -fs $CONFIG_FOLDER /inputrc /root/.inputrc
1616echo " source $CONFIG_FOLDER /bashrc" >> /root/.bashrc
You can’t perform that action at this time.
0 commit comments