-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated to V2.0, full rewrite of FPkg
- Loading branch information
Showing
9 changed files
with
10,570 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 |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#!/bin/bash | ||
workedin=$(pwd) | ||
cd ~/.FPkg | ||
|
||
fpshell=$(cat ~/.FPkg/shell.var) | ||
if [[ $fpshell == "" ]] | ||
then | ||
fpshell="bash" | ||
echo "USING BASH SHELL, PLEASE EDIT ~/.FPkg/shell.var AND EDIT SHELL." | ||
fi | ||
|
||
|
||
|
||
if [[ $1 != "fphistory" ]] | ||
then | ||
echo $@ &>> history | ||
$fpshell ~/.FPkg/packages/$@ | ||
comp=y | ||
fi | ||
|
||
if [[ $1 == "fphistory" ]] | ||
then | ||
if [[ $2 != "clear" ]] | ||
then | ||
$fpshell ~/.FPkg/packages/$(cat history | gum filter) | ||
comp=y | ||
fi | ||
|
||
if [[ $2 == "clear" ]] | ||
then | ||
echo "Clearing history..." | ||
rm -rf history | ||
touch history | ||
echo "Adding cancel option..." | ||
echo "Cancel" &>> history | ||
comp=y | ||
fi | ||
fi | ||
|
||
if [[ $1 == "fsh" ]] | ||
then | ||
$fpshell ~/.FPkg/FSh | ||
comp=y | ||
fi | ||
|
||
if [[ $comp == "" ]] | ||
then | ||
echo "FPkg: Wrong arguments / Code failure" | ||
fi | ||
|
||
cd $workedin |
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,31 @@ | ||
#!/bin/bash | ||
|
||
$(cat shell.var) ~/.FPkg/.fshrc | ||
|
||
if [[ $(/bin/id -u) == 1000 ]] | ||
then | ||
user=$ | ||
elif [[ $(/bin/id -u) == 10264 ]] | ||
then | ||
user=$ | ||
elif [[ $(/bin/id -u) == 0 ]] | ||
then | ||
user=# | ||
fi | ||
|
||
read -p "$user:" cmd | ||
|
||
if [[ $cmd == clear-shell-history ]] | ||
then | ||
echo "Clearing history..." | ||
rm -rf shell-hist | ||
touch shell-hist | ||
echo "Adding cancel option..." | ||
echo "Cancel" &>> shell-hist | ||
dontexec=y | ||
elif [[ $dontexec == "" ]] | ||
then | ||
echo $cmd &>> shell-hist | ||
$cmd | ||
fi | ||
$(cat shell.var) ~/.FPkg/FSh |
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,47 @@ | ||
style=3 | ||
|
||
if [[ $style == 0 ]] | ||
then | ||
echo 'FPkg was loaded successfully' | ||
fi | ||
|
||
if [[ $style == 1 ]] | ||
then | ||
echo | ||
echo | ||
echo ' ███████ ██████ ██ ██ ██████ ██ ██ █████ ██████ ██████ ██ ██' | ||
echo ' ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██' | ||
echo ' █████ ██████ █████ ██ ███ ███ ███████ ██████ ██ ███████' | ||
echo ' ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██' | ||
echo ' ██ ██ ██ ██ ██████ ██ ██ ██ ██ ██ ██ ██████ ██ ██' | ||
echo | ||
echo | ||
fi | ||
|
||
if [[ $style == 2 ]] | ||
then | ||
echo | ||
echo | ||
echo | ||
echo ' ▄██████ ██████▄ ▄█████▄' | ||
echo ' ██ ██ ██ ██ ██ ▄▄' | ||
echo ' █████ ██████▀ ██ ██ ▄████▄ ██ ██ ███████ ██▄██ ▄████ ██' | ||
echo ' ██ ██ ████ ██ ██ ██ ██ ██ ██▀ ██ ████▄' | ||
echo ' ██ ██ ██ ██ ▀█████ ██ ██ ██ ██ ██ ▀████ ██ ██' | ||
echo ' ▄▄ ██' | ||
echo ' Version: V2.0 | RELEASE ▀███▀ Made with ♥ by fluid-developer' | ||
echo | ||
fi | ||
|
||
if [[ $style == 3 ]] | ||
then | ||
echo | ||
echo | ||
echo ' _____ ____ __' | ||
echo ' | __| __ \ |--.---.' | ||
echo ' | __| __/ <| _ |' | ||
echo ' |_| |_| |__|__|__ |' | ||
echo ' |___|' | ||
echo ' V2.0R | Made with ♥ by fluid-developer' | ||
echo | ||
fi |
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,11 @@ | ||
Cancel | ||
fpshell | ||
|
||
|
||
hello | ||
|
||
|
||
hello | ||
|
||
|
||
|
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,3 @@ | ||
# Cancel option | ||
echo "Cancelling..." | ||
exit 0 |
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,2 @@ | ||
# Testing purposes | ||
echo "Hello, World! This is FPkg" |
Oops, something went wrong.