Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add 10% chance to execute ls #75

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

fel1x0u
Copy link

@fel1x0u fel1x0u commented Sep 2, 2021

because of the StackExchange thread "Does sl ever show the current directory?"

@Julien-Leos
Copy link

Julien-Leos commented Oct 6, 2021

I approve. Now please add 1% chance on ls to execute sl.

@fel1x0u
Copy link
Author

fel1x0u commented Oct 8, 2021

Okay... but i'll first attempt to check if sl is indeed installed on the system

@tralph3
Copy link

tralph3 commented Dec 19, 2021

I would suggest running ls and letting the shell interpret it, that way aliases should be respected.

@fel1x0u
Copy link
Author

fel1x0u commented Dec 20, 2021

I will do that when I get to my PC.

@okalachev
Copy link

This would ruin the joke:

As far as I know, the only condition under which sl shows the current directory is when you mistype it as ls.

So I'm against.

Update it so it has a 10% chance to execute ls, and if it does do it it will /bin/bash the ls.
@fel1x0u
Copy link
Author

fel1x0u commented Dec 24, 2021

I would suggest running ls and letting the shell interpret it, that way aliases should be respected.

This has been added.

sl.c Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants