diff --git a/board/classic/rootfs/etc/bash.bashrc b/board/classic/rootfs/etc/bash.bashrc new file mode 100644 index 00000000..e934fc5c --- /dev/null +++ b/board/classic/rootfs/etc/bash.bashrc @@ -0,0 +1,18 @@ +# System-wide .bashrc file for interactive bash(1) shells. + +# If not running interactively, don't do anything +[ -z "$PS1" ] && return + +# Reevaluate for each line, in case hostname changes +function prompt_command +{ + PS1="\u@$(hostname):\w\$ " +} +export PROMPT_COMMAND=prompt_command + +# check the window size after each command and, if necessary, +# update the values of LINES and COLUMNS. +shopt -s checkwinsize + +# Disble built-ins +enable -n help diff --git a/board/common/rootfs/etc/bash.bashrc b/board/common/rootfs/etc/bash.bashrc index e934fc5c..709f38d4 100644 --- a/board/common/rootfs/etc/bash.bashrc +++ b/board/common/rootfs/etc/bash.bashrc @@ -13,6 +13,3 @@ export PROMPT_COMMAND=prompt_command # check the window size after each command and, if necessary, # update the values of LINES and COLUMNS. shopt -s checkwinsize - -# Disble built-ins -enable -n help