-
-
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.
Merge pull request #35 from NymexData/development
Updates
- Loading branch information
Showing
5 changed files
with
284 additions
and
17 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
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,122 @@ | ||
#!/bin/bash | ||
|
||
: ' | ||
▒█░░▒█ ░▀░ █▀▀█ ▒█▀▀▀█ █░░█ █▀▀ █░░ █░░ | ||
░▒█▒█░ ▀█▀ █░░█ ░▀▀▀▄▄ █▀▀█ █▀▀ █░░ █░░ | ||
░░▀▄▀░ ▀▀▀ █▀▀▀ ▒█▄▄▄█ ▀░░▀ ▀▀▀ ▀▀▀ ▀▀▀ | ||
************************************************* | ||
The VIP Shell provides a basic yet functional command-line | ||
environment with added features for command history and file | ||
tracking, enhancing the user experience in a Unix-like shell. | ||
************************************************* | ||
* Developed and engineered by: | ||
* Felipe Alfonso Gonzalez <f.alfonso@res-ear.ch> | ||
* Computer Science Engineer | ||
* Chile | ||
************************************************* | ||
* Important Notes: | ||
* - The application has been tested on Linux and macOS. | ||
* - For Windows, additional configurations may be required. | ||
* - Make sure to fulfill the prerequisites before running the application. | ||
* - For more information, please refer to the project documentation. | ||
************************************************* | ||
' | ||
|
||
welcome_message() { | ||
echo | ||
echo "▒█░░▒█ ░▀░ █▀▀█ ▒█▀▀▀█ █░░█ █▀▀ █░░ █░░" | ||
echo "░▒█▒█░ ▀█▀ █░░█ ░▀▀▀▄▄ █▀▀█ █▀▀ █░░ █░░" | ||
echo "░░▀▄▀░ ▀▀▀ █▀▀▀ ▒█▄▄▄█ ▀░░▀ ▀▀▀ ▀▀▀ ▀▀▀" | ||
echo "---------------------------------------------------" | ||
echo "VIP Shell - Simple and Interactive Command Line Shell" | ||
echo "---------------------------------------------------" | ||
echo "* Welcome to the VIP Shell, a user-friendly shell" | ||
echo "* for executing commands in a Unix-like environment." | ||
echo "---------------------------------------------------" | ||
echo | ||
echo "╭─────────────────── TERMS OF USE ─────────────────╮" | ||
echo "│ This software is licensed under - MIT and BSD-3 │" | ||
echo "│ Restrictive Licenses. │" | ||
echo "│ Developed by Felipe Alfonso González │" | ||
echo "│ Computer Science Engineer │" | ||
echo "│ GitHub: github.com/felipealfonsog │" | ||
echo "╰──────────────────────────────────────────────────╯" | ||
echo | ||
echo "Welcome to the VIP Shell Installer!" | ||
echo "This script will install the VIP Shell program on your system." | ||
echo "Please make sure you have the necessary permissions to perform the installation." | ||
read | ||
} | ||
|
||
|
||
download_source_vipshellp() { | ||
local os=$(uname -s) | ||
local installer_url="https://github.com/felipealfonsog/C-VipNX/raw/main/vipshell.c" | ||
|
||
if [[ "$os" == "Darwin" || "$os" == "Linux" ]]; then | ||
echo "Downloading the shell vip source..." | ||
curl -o shellvip.c -L "$installer_url" | ||
else | ||
echo "Unsupported platform." | ||
exit 1 | ||
fi | ||
} | ||
|
||
compile_source_vipshell() { | ||
echo "Compiling source ..." | ||
|
||
gcc -o vipshell vipshell.c || { | ||
echo "Error: Compilation failed." | ||
exit 1 | ||
} | ||
sudo chmod +x vipshell | ||
echo "Compilation successful." | ||
} | ||
|
||
move_to_bin_directory() { | ||
echo "Moving compiled binary to bin directory..." | ||
|
||
sudo mv vipshell "/usr/local/bin" | ||
|
||
sudo chmod +x "/usr/local/bin/vipshell" | ||
|
||
echo "Binary moved to '/usr/local/bin' and permissions set." | ||
} | ||
|
||
|
||
run_vipshell() { | ||
echo "Running the Vip Shell from Bash script..." | ||
|
||
/usr/local/bin/vipshell | ||
#echo "Vip Shell executed." | ||
} | ||
|
||
remove_compiled_file() { | ||
echo "Removing unnecessary files..." | ||
rm -rf *.c | ||
rm installer.sh | ||
echo "Cleanup complete." | ||
} | ||
|
||
set_permissions() { | ||
echo "Setting permissions..." | ||
|
||
# chmod 755 ./ | ||
|
||
echo "Permissions set." | ||
} | ||
|
||
|
||
|
||
welcome_message | ||
download_source_vipshell | ||
compile_source_vipshell | ||
move_to_bin_directory | ||
# run_shellvip | ||
remove_compiled_file | ||
# set_permissions | ||
|
||
echo "Vipshell has been successfully installed as 'vipshell' command!" |
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,24 @@ | ||
# Mantenedor: Felipe Alfonso Gonzalez <f.alfonso@res-ear.ch> | ||
pkgname=vipshell | ||
pkgver=1.2.4 | ||
pkgrel=1 | ||
pkgdesc="VIP Shell is a cutting-edge, open-source terminal environment that elevates your command-line experience with enhanced features and personalized interactions." | ||
arch=('x86_64') | ||
url="https://github.com/felipealfonsog/C-VipNX" | ||
license=('MIT') | ||
depends=('gcc') | ||
source=("https://github.com/felipealfonsog/C-VipNX/archive/refs/tags/v.${pkgver}.tar.gz") | ||
sha256sums=('7111ba0d04ae16d01fc590e3838edf22e2afef69db2be522775e2ede0659f76a') | ||
|
||
prepare() { | ||
tar xf "v.${pkgver}.tar.gz" -C "$srcdir" --strip-components=1 | ||
# cp "$srcdir"/vipshell.c "$srcdir"/C-VipNX-v."$pkgver"/ | ||
} | ||
build() { | ||
cd "$srcdir"/C-VipNX-v."${pkgver}" | ||
gcc -o vipshell "$srcdir"/C-VipNX-v."${pkgver}"/vipshell.c | ||
} | ||
package() { | ||
install -Dm755 "$srcdir"/C-VipNX-v."${pkgver}"/vipshell "${pkgdir}/usr/local/bin/vipshell" | ||
|
||
} |
File renamed without changes.
File renamed without changes.