1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-25 00:51:21 +00:00
freebsd-ports/shells/bashc/pkg-install
Alejandro Pulver 88863d272a Bash Commander is a traditional GNU bash shell extended with visual two-panel
file browser.

Features:

* Full bash compatibility.
* Embedded visual file browser.
* Two file panels, turned on and off by pressing ^O.
* Actions and colors configured via .bashrc script.
* Run current file on pressing Enter, configurable via commander_start_file()
  shell function.
* Perform an action on pressing F1-F20 keys, configurable via commander_fN()
  shell functions.

WWW:	http://groups.google.com/group/bashc/web/overview
2008-03-11 22:38:46 +00:00

20 lines
462 B
Bash

#!/bin/sh
#
# $FreeBSD: /tmp/pcvs/ports/shells/bashc/pkg-install,v 1.1 2008-03-11 22:38:46 alepulver Exp $
#
BASHC="$(echo ${PKG_PREFIX-/usr/local}/bin/bashc | /usr/bin/sed -e 's|//|/|g')"
SHELLS="/etc/shells"
case $2 in
POST-INSTALL)
if [ -d "${SHELLS%/*}" ] && ! grep -qs "^$BASHC\$" "$SHELLS"; then
if [ `id -u` -eq 0 ]; then
echo "$BASHC" >> "$SHELLS"
else
echo "Not root, please add $BASHC to $SHELLS manually"
fi
fi
;;
esac