From d20b081498ee6e7f062682cc4d67fda1b17af480 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Bl=C3=A4se?= Date: Wed, 31 Jan 2024 12:24:54 +0100 Subject: [PATCH] profile: include full hostname in shell prompt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All of our devices are routers. Because they all serve the same purpose, it is quite common that the first part of the hostname is the same for multiple devices, and the location of the device is only included in subsequent parts of the hostname. Include the full hostname in the shell prompt, so it is easier to determine the devices location. Signed-off-by: Fabian Bläse --- bsp/default/root_file_system/etc/profile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bsp/default/root_file_system/etc/profile b/bsp/default/root_file_system/etc/profile index 63105744..131a2697 100644 --- a/bsp/default/root_file_system/etc/profile +++ b/bsp/default/root_file_system/etc/profile @@ -26,4 +26,4 @@ alias ls='ls --color=auto' alias ip='ip --color=auto' # and color my prompt -export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' +export PS1='\[\033[01;32m\]\u@\H\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '