Skip to content

Commit

Permalink
Merge pull request #16 from jszczerbinsky/info-script
Browse files Browse the repository at this point in the history
info script
  • Loading branch information
jszczerbinsky authored May 12, 2021
2 parents 2e52e3b + b3c8898 commit fbaa52d
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,19 @@
ver=/tmp/ptsh_ver
install:
git rev-parse --short HEAD > $(ver)
sudo mkdir -p /usr/local/share/ptSh
sudo cp src/config /usr/local/share/ptSh/config
sudo cp src/set_aliases.sh /usr/local/bin/ptSh_set_aliases
sudo cp src/ptsh.sh /usr/local/bin/ptsh
sudo cp LICENSE /usr/local/share/ptSh/LICENSE
sudo cp src/logo.txt /usr/local/share/ptSh/logo.txt
sudo cp src/ptLs.sh /usr/local/bin/ptls
sudo cp src/ptPwd.sh /usr/local/bin/ptpwd
sudo cp src/ptMkdir.sh /usr/local/bin/ptmkdir
sudo cp src/ptTouch.sh /usr/local/bin/pttouch
mkdir -p ~/.config
mkdir -p ~/.config/ptSh
cp src/config ~/.config/ptSh/config
echo "Version: cloned from " | sudo tee /usr/local/share/ptSh/version.txt
cat $(ver) | sudo tee -a /usr/local/share/ptSh/version.txt
ptsh
9 changes: 9 additions & 0 deletions src/logo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
▄███████▄ ███ ▄████████ ▄█ █▄
███ ███ ▀█████████▄ ███ ███ ███ ███
███ ███ ▀███▀▀██ ███ █▀ ███ ███
███ ███ ███ ▀ ███ ▄███▄▄▄▄███▄▄
▀█████████▀ ███ ▀███████████ ▀▀███▀▀▀▀███▀
███ ███ ███ ███ ███
███ ███ ▄█ ███ ███ ███
▄████▀ ▄████▀ ▄████████▀ ███ █▀

21 changes: 21 additions & 0 deletions src/ptsh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/bash

echo -e "\e[35m"

cat /usr/local/share/ptSh/logo.txt

echo "Let your shell commands look prettier..."
echo -e "\e[0m"

echo
while read -r line; do
echo -n "$line "
done <<<$(cat /usr/local/share/ptSh/version.txt)

echo
echo

echo -e "If You enjoy ptSh, give it a \e[5m\e[93mstar\e[0m on github: \e[92mhttps://github.com/jszczerbinsky/ptSh\e[0m"
echo -e "\e[34m"
cat /usr/local/share/ptSh/LICENSE
echo -e "\e[0m"

0 comments on commit fbaa52d

Please sign in to comment.