Git Product home page Git Product logo

shell-mommy's People

Contributors

christiansilvermoon avatar corruptedvor avatar elsie19 avatar frroossst avatar sudofox avatar triphora avatar y0nei avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

shell-mommy's Issues

PROMPT_COMMAND support

Hi, nice project!

I wanted to let you know there's a way to integrate with PROMPT_COMMAND without any changes to the script.

in .bashrc:

source /path/to/mommy.sh
export PROMPT_COMMAND="mommy \\$\\(exit \$?\\); $PROMPT_COMMAND"

You could add this note in the Readme to let users know.

Share your configurations here!

I'll start us off with Samuel L Jackson. This example uses no substitutions, but you could replace son if you wanted to.

export SHELL_MOMMYS_NEGATIVE_RESPONSES=(
	"You call that effort? This is some weak-ass shit."
	"You ain't gonna make it with that attitude, son."
	"What the hell is wrong with you?"
	"You ain't got the skills to back that attitude up."
	"You better step up your game, before I step up mine."
	"I ain't got time for this amateur hour bullshit."
	"You ain't gonna make it in this world with that attitude."
	"You better wise up, before you get left behind."
	"I ain't impressed with that effort, son."
	"You ain't got what it takes to succeed."
	"You better bring your A-game, or get out of the game."
	"You better shape up, before I ship out."
	"I ain't gonna sugarcoat it - that was weak as hell."
	"You ain't got what it takes to make it in this world."
	"I ain't gonna hold your hand - you better step up."
	"You better bring your best effort, or don't even bother showing up."
	"I ain't gonna waste my time on half-ass efforts."
	"You ain't gonna make it with that attitude, son."
	"You better come correct, or don't come at all."
)
export SHELL_MOMMYS_POSITIVE_RESPONSES=(
	"You did it! Now that's what I'm talkin' about!"
	"I knew you had it in you, son."
	"You brought your A-game and it shows."
	"Now that's the effort I like to see."
	"You're killin' it, son."
	"I ain't gonna lie, you impressed the hell out of me."
	"You're on fire, son!"
	"You bringin' your best effort, and it shows."
	"You ain't playin' around, are you?"
	"I can see you're gonna make it in this world."
	"You're bringin' the heat, son."
	"You're killin' it out there."
	"I ain't seen effort like that in a long time."
	"You're bringin' your A-game, and it shows."
	"You ain't afraid to bring your best, and I respect that."
	"You're killin' it, son."
	"I can see you're gonna make it in this world."
	"You're bringin' the heat, son."
)

No Output

I have setup shell-mommy in my user's local bin folder. The file permissions should be correct, ie : execution permissions are granted for the user owner of the file. Though, I do no get an output at all in my Konsole if I use mommy ls.

My version of bash is 5.1.16, I am on Arch Linux.
I have tried changing the shebang on the script for /usr/bin/bash but it still does not work.

Consider No Output for Signal Interrupt

Signal Interrupt (Exit Code 130) is generally not a failure per say.

While Shell Mommy's words of comfort and encouragement are lovely, nothing wrong necessarily happened here, this was a CTRL+C, an intentional interruption of the last command.

Porting shell-mommy to fish

Since fish has a non-POSIX compliant syntax, I took it upon myself to try to port this (fun) project. Here's the link to my repository. Currently it's barely functional but I do plan to add rest of the features as soon as I have some free time.

Not working on zsh?

I can't seem to get this to work on zsh...

user@theSource:~/.scripts/shell-mommy(master○) » source /home/user/.scripts/shell-mommy/shell-mommy.sh 
user@theSource:~/.scripts/shell-mommy(master○) » mommy ls
.rw-r--r--  51k user 12 Jan 13:55  preview.png
.rw-r--r-- 2.9k user 12 Jan 13:55  README.md
.rw-r--r-- 5.4k user 12 Jan 13:55  shell-mommy.sh
success:3: = not found
user@theSource:~/.scripts/shell-mommy(master○) » 

it dont work with zsh

     ~/shell-mommy     master  source ./shell-mommy.sh
     ~/shell-mommy     master  mommy ls
.rw-r--r--  51k user  4 Jan 17:42  preview.png
.rw-r--r-- 2.9k user  4 Jan 17:42  README.md
.rw-r--r-- 5.4k user  4 Jan 17:42  shell-mommy.sh
success:3: = not found
     ~/shell-mommy     master  

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.