File: bashacks.postinst

package info (click to toggle)
bashacks 1.5%2Bgit20241128.a8d16fc-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 412 kB
  • sloc: sh: 435; python: 34; makefile: 32
file content (16 lines) | stat: -rwxr-xr-x 414 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

set -e

YELLOW='\033[1;33m'
GREEN='\033[0;32m'
NC='\033[0m'

# Check if this is a new installation or an update.
if [ -z "$2" ]; then

    echo -e "${GREEN}Run the command below for 'bashacks' to take effect immediately:${NC}"
    echo -e "${YELLOW}$ echo '. /usr/bin/bashacks' >> \$HOME/.bashrc && source \$HOME/.bashrc${NC}"
    echo -e "${GREEN}Type 'bh' and press TAB twice!:${NC}"
fi
#DEBHELPER#