-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBigyls.zsh-theme
20 lines (16 loc) · 1.25 KB
/
Bigyls.zsh-theme
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# A multiline prompt with username, hostname, full path, return status, git branch, git dirty status, git remote status
# This is a modified version of the intheloop theme, with date, time, and IP address added for penetration testing logging.
# This is configured to include the IP address of eth0 for Internal network pentests.
# For External network pentests, comment out lines 13 and 14, and uncomment lines 16 and 17 in include your Internet IP address in the prompt.
local return_status="%{$fg[red]%}%(?..⏎)%{$reset_color%}"
local host_color="green"
if [ -n "$SSH_CLIENT" ]; then
local host_color="red"
fi
PROMPT="%{$fg_bold[red]%}[%{$reset_color%}%{$fg_bold[${host_color}]%}%n@%m%{$reset_color%}%{$fg_bold[red]%}]%{$reset_color%} %{$fg_bold[cyan]%}%c%{$reset_color%} {%{$fg_bold[yellow]%}%D{%d/%m/%y %H:%M}%{$reset_color%}} %{$fg_bold[red]%}$(ip a | grep -A 1 -e tun0 -e ppp0 | grep inet | tr -s ' ' | cut -d ' ' -f 3 | cut -d '/' -f 1) %{$reset_color%}
%{$fg_bold[green]%}➜ %{$reset_color%}"
PROMPT+='$(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[red]%}✗ "
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})%{$fg[green]%}✗ "