-
Notifications
You must be signed in to change notification settings - Fork 0
/
prowpt.plugin.zsh
29 lines (26 loc) · 1.01 KB
/
prowpt.plugin.zsh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#Prowpt - Simple, lightweight, and customizable Powerline-like prompt theme for Bash and Zsh
#Copyright (C) 2023 Alkappa/alpaca-honke
#
#This file is part of Prowpt.
#
#Prowpt is free software: you can redistribute it and/or modify
#it underthe terms of the GNU General Public License as published by
#the Free Software Foundation, version 2.0 of the License.
#
#Prowpt is distributed in the hope that it will be useful,
#but WITHOUT ANY WARRANTY; without even the implied warranty of
#MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
#GNU General Public License for more details.
#
#You should have received a copy of the GNU General Public License
#along with Prowpt. If not, see <https://www.gnu.org/licenses/>.
PROWPT_SHELL="zsh"
PROWPT_CURRENT_TIME="%*"
PROWPT_USER="%n"
PROWPT_HOST="%m"
PROWPT_PROMPT="%#"
source $( cd "$( dirname "$0" )" && pwd -P)/prowpt-core.sh
precmd () {
prowpt_init
PROMPT=$(prowpt_current_time)$(prowpt_user)$(prowpt_host)$(prowpt_pwd)$(prowpt_git)%f%k$'\n'$(prowpt_prompt)%f%k' '
}