Salome HOME
6a6e0a318ea7ede4980348dba6a20bb313e216b7
[modules/kernel.git] / bin / appliskel / .bashrc
1 #!/bin/bash
2 # Copyright (C) 2007-2023  CEA/DEN, EDF R&D, OPEN CASCADE
3 #
4 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
5 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 #
7 # This library is free software; you can redistribute it and/or
8 # modify it under the terms of the GNU Lesser General Public
9 # License as published by the Free Software Foundation; either
10 # version 2.1 of the License, or (at your option) any later version.
11 #
12 # This library is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15 # Lesser General Public License for more details.
16 #
17 # You should have received a copy of the GNU Lesser General Public
18 # License along with this library; if not, write to the Free Software
19 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
20 #
21 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 #
23
24 # If not running interactively, don't do anything:
25
26 [ -z "$PS1" ] && return
27
28 # prefix prompt with naming server hostname and port
29 #export PS1='[NS='${NSHOST}':'${NSPORT}']'${PS1}
30
31 NO_COLOR="\[\033[0m\]"
32 RED="\[\033[0;31m\]"
33 DARK_RED="\[\033[1;31m\]"
34 GREEN="\[\033[0;32m\]"
35 DARK_GREEN="\[\033[1;32m\]"
36 BROWN="\[\033[0;33m\]"
37 DARK_BROWN="\[\033[1;33m\]"
38 BLUE="\[\033[0;34m\]"
39 DARK_BLUE="\[\033[1;34m\]"
40 PURPLE="\[\033[0;35m\]"
41 DARK_PURPLE="\[\033[1;35m\]"
42 CYAN="\[\033[0;36m\]"
43 DARK_CYAN="\[\033[1;36m\]"
44
45 NS_COLOR=${BROWN}
46 HOST_COLOR=${BLUE}
47 PORT_COLOR=${PURPLE}
48 DEFAULT_COLOR=${NO_COLOR}
49
50 export PS1="${DEFAULT_COLOR}[${NS_COLOR}NS=${HOST_COLOR}${NSHOST}${NS_COLOR}:${PORT_COLOR}${NSPORT}${NS_COLOR}${DEFAULT_COLOR}]\$ "