-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from jszczerbinsky/info-script
info script
- Loading branch information
Showing
3 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
▄███████▄ ███ ▄████████ ▄█ █▄ | ||
███ ███ ▀█████████▄ ███ ███ ███ ███ | ||
███ ███ ▀███▀▀██ ███ █▀ ███ ███ | ||
███ ███ ███ ▀ ███ ▄███▄▄▄▄███▄▄ | ||
▀█████████▀ ███ ▀███████████ ▀▀███▀▀▀▀███▀ | ||
███ ███ ███ ███ ███ | ||
███ ███ ▄█ ███ ███ ███ | ||
▄████▀ ▄████▀ ▄████████▀ ███ █▀ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |