Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37868035
en ru br
ALT Linux repos
S:2.7.1-alt1

Group :: Development/Other
RPM: bash-git-prompt

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

# SPDX-License-Identifier: GPL-2.0-only
%define _unpackaged_files_terminate_build 1
%define _stripped_files_terminate_build 1
%set_verify_elf_method strict

Name: bash-git-prompt
Version: 2.7.1
Release: alt1
Summary: An informative and fancy bash prompt for Git users
License: BSD-2-Clause
Group: Development/Other
Url: https://github.com/magicmonty/bash-git-prompt

BuildArch: noarch
Source: %name-%version.tar

%description
A bash prompt that displays information about the current git repository. In
particular the branch name, difference with remote branch, number of files
staged, changed, etc.

To enable add these example lines to your ~/.bashrc:

  GIT_PROMPT_ONLY_IN_REPO=1
  GIT_PROMPT_THEME=Single_line
  source %_datadir/%name/gitprompt.sh

List available themes with 'git_prompt_list_themes'.

%prep
%setup

%build
echo *.sh | xargs -tn1 bash -n

%install
install -Dp *sh -t %buildroot%_datadir/%name
cp -pr themes %buildroot%_datadir/%name

%define _customdocdir %_docdir/%name

%files
%doc LICENSE.txt README.md
%_datadir/%name

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin