Skip to content

Commit fa50865

Browse files
committed
Improved container environment
1 parent 6968498 commit fa50865

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

hack/dpservice.bashrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,21 @@ source /etc/bash_completion
44
source <(dpservice-cli completion bash)
55

66
source ~/tcpdump_helpers.inc
7+
8+
if [ -z "${DP_FILE_PREFIX:-}" ]; then
9+
DP_FILE_PREFIX=dpservice
10+
fi
11+
12+
if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then
13+
PS1='\[\033[01;31m\]\h\[\033[00m\] $DP_FILE_PREFIX \[\033[01;34m\]\w \$\[\033[00m\] '
14+
15+
alias ls='ls --color=auto'
16+
17+
alias grep='grep --color=auto'
18+
alias fgrep='fgrep --color=auto'
19+
alias egrep='egrep --color=auto'
20+
else
21+
PS1='\h $DP_FILE_PREFIX \w \$ '
22+
fi
23+
24+
HISTCONTROL=ignoredups

0 commit comments

Comments
 (0)