Skip to content

add 10% chance to execute ls#75

Open
red-socks294 wants to merge 3 commits intomtoyoda:masterfrom
red-socks294:master
Open

add 10% chance to execute ls#75
red-socks294 wants to merge 3 commits intomtoyoda:masterfrom
red-socks294:master

Conversation

@red-socks294
Copy link
Copy Markdown

@red-socks294 red-socks294 commented Sep 2, 2021

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

@Julien-Leos
Copy link
Copy Markdown

Julien-Leos commented Oct 6, 2021

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

@red-socks294
Copy link
Copy Markdown
Author

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

@tralph3
Copy link
Copy Markdown

tralph3 commented Dec 19, 2021

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

@red-socks294
Copy link
Copy Markdown
Author

I will do that when I get to my PC.

@okalachev
Copy link
Copy Markdown

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.
@red-socks294
Copy link
Copy Markdown
Author

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

This has been added.

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