https://github.com/pigeonposse/pigeonsh
β‘οΈπ Centralize your server scripts in a single folder and run them using a command.
https://github.com/pigeonposse/pigeonsh
cli javascript sh shell-scripts
Last synced: 4 months ago
JSON representation
β‘οΈπ Centralize your server scripts in a single folder and run them using a command.
- Host: GitHub
- URL: https://github.com/pigeonposse/pigeonsh
- Owner: pigeonposse
- License: gpl-3.0
- Created: 2023-01-05T16:18:34.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-09T20:00:16.000Z (over 1 year ago)
- Last Synced: 2025-10-12T01:57:28.929Z (9 months ago)
- Topics: cli, javascript, sh, shell-scripts
- Language: JavaScript
- Homepage: https://pigeonposse.com
- Size: 112 MB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README

[](https://pigeonposse.com/)
[](https://pigeonposse.com/?popup=about)
[](https://github.com/pigeon-posse)
[](https://pigeonposse.com/?popup=donate)
[](https://npmjs.com/package/@pigeon-posse/pigeonsh)
[](https://npmjs.com/package/@pigeon-posse/pigeonsh)
[](https://npmjs.com/package/@pigeon-posse/pigeonsh)
# PIGEONSH by _PIGEONPOSSEβ’_
> :warning: **_Beta_ version**. It can be installed and used but things may change in the future.
## π Description
Centralize your server scripts in a single folder and run them using the ```psh``` or ```pigeonsh``` command.
Can be used with ```.sh```, ```.zsh```, ```.js```, and ```.py``` files.
Index
1. [Description](#-description)
2. [Installation](#-installation)
3. [Usage](#%EF%B8%8F-usage)
- [Write scripts](#write-scripts)
- [Execute scripts](#execute-scripts)
- [list](#-psh-list)
- [[script-name] or exec [script-name]](#-psh-script-name-or-psh-exec-script-name)
- [info [script-name]](#-psh-info-script-name)
4. [Development](#-development)
5. [Donate](#-donate)
6. [License](#-license)
7. [About us](#-about-us)
## π Installation
### β‘οΈ Using NPM
```bash
npm install -g @pigeon-posse/pigeonsh
```
### β’οΈ With a executable
View details
> :warning: __Not recommended__. If you install it this way, the executable will be heavier.
Supported on __Linux__, __MacOs__ and __Windows__.
#### Fast mode
##### ```macos```:
```bash
git clone https://github.com/pigeon-posse/pigeonsh.git pigeonsh && cp pigeonsh/dist/pigeonsh-macos /usr/local/bin/psh && psh hello
```
##### ```linux```:
```bash
git clone https://github.com/pigeon-posse/pigeonsh.git pigeonsh && cp pigeonsh/dist/pigeonsh-linux /usr/local/bin/psh && psh hello
```
##### ```Windows``` (no tested):
```cmd
git clone https://github.com/pigeon-posse/pigeonsh.git pigeonsh && copy pigeonsh/dist/pigeonsh-win.exe C: \Program Files (x86)\Git \us\ local bin\psh && psh hello
```
##### β
Success installation
If the installation has been executed correctly you should see at the end of your line a:
```Hello Pigeon π¦π```
#### Manual mode
1. Clone the repository and go to the dist folder.
2. Copy the executable corresponding to your operating system in your ```bin``` folder.
## βοΈ Usage
### Write scripts
You can write your scripts in your ```~/.scriptsrc``` folder. The structure for the script to work must be:
```bash
- ~/.scriptsrc
- π [script-name]
- π main.[sh, zsh, js, py]
- π info.[yml, yaml, json] # not required
```
View details.
π
[script-name]:The name of the folder will be the name that you execute from the
psh command.
Folder name must not contain spaces.
π
main.[sh, js, py]:The main file is the file that will be executed, here you will write your code. It could be
.sh, .js, .py. main.sh example:```bash
#!/bin/sh
echo "Hello Pigeon π¦π"
```
π
info.[yml, yaml, json]:Not required. In this file you will add the information of your scripts. info.yml example:
```yaml
description: Print hello message.
version: 1.0.0
```
### Execute scripts
#### π ```psh list```
Running this command lists all the scripts saved in your ```~/.scriptsrc``` folder.
Example
Run:
```bash
psh list
```
Returns list of scripts like:
```bash
hello
aliasrc
hosts
```
#### π ```psh [script-name]``` or ```psh exec [script-name]```
Running this command will run the scripts with the same name if they exist.
Example
Run:
```bash
psh hello
```
or
```bash
psh exec hello
```
Returns hello script:
```bash
Hello Pigeon π¦π
```
#### π ```psh info [script-name]```
Running this command will display info of script.
Example
Run:
```bash
psh info hello
```
Returns hello script info:
```bash
{
"description": "Print hello message",
"version": "1.0.0"
}
```
## π¨βπ» Development
You can contribute via **_Github_**.
[](https://github.com/pigeon-posse/pigeonsh/issues)
[](https://github.com/pigeon-posse/pigeonsh/pulls)
## β Donate
Help us to develop more interesting things.
[](https://pigeonposse.com/?popup=donate)
## π License
This software is licensed with GPLv3 (GNU GENERAL PUBLIC LICENSE Version 3).
[](https://github.com/pigeon-posse/pigeonsh/blob/main/LICENSE)
## π¦ About us
_PigeonPosse_ is a β¨ **code development collective** β¨ focused on creating practical and interesting tools that help developers and users enjoy a more agile and comfortable experience. Our projects cover various programming sectors and we do not have a thematic limitation in terms of projects.
[](https://github.com/PigeonPosse/PigeonPosse)
### Collaborators
| | Name | Role | GitHub |
| ---------------------------------------------------------------------------------- | ----------- | ------------ | ---------------------------------------------- |
|
| AngelEspejo | Author | [@AngelEspejo](https://github.com/AngelEspejo) |
|
| Irfaelo | Windows compatibility | [@irfaelo](https://github.com/irfaelo) |
|
| PigeonPosse | Collective | [@PigeonPosse](https://github.com/PigeonPosse) |