We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6968498 commit fa50865Copy full SHA for fa50865
hack/dpservice.bashrc
@@ -4,3 +4,21 @@ source /etc/bash_completion
4
source <(dpservice-cli completion bash)
5
6
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
23
24
+HISTCONTROL=ignoredups
0 commit comments