Skip to content
This repository has been archived by the owner on May 23, 2022. It is now read-only.

Support for apps with spaces or ability to add aliases #23

Open
nrj opened this issue Nov 24, 2015 · 6 comments
Open

Support for apps with spaces or ability to add aliases #23

nrj opened this issue Nov 24, 2015 · 6 comments

Comments

@nrj
Copy link

nrj commented Nov 24, 2015

Ideally this would work.

$ fuck you chrome
    (; ̄Д ̄) . o O( I’ve got nothing on chrome )

Less ideal.

$ fuck you google chrome
    (; ̄Д ̄) . o O( I’ve got nothing on chrome )

Meh.

$ fuck you "google chrome"
    (╯°□°)╯︵ǝɯoɹɥɔ ǝlɓooɓ(x1: 50998)
@danyshaanan
Copy link

#11 would solve this issue.

@robotlolita
Copy link
Member

You can use wildcards for matching process names partially, so fuck you *chrome will match anything that ends with chrome, and fuck you *chrome* will match anything that has chrome somewhere.

How do you envision the alias thingie working?

@danyshaanan
Copy link

One way to go for aliases would be to have a default .fuck-you config file with key:value pairs that is overridden by a similar ~/.fuck-you user config file if exists. Config files could be YML or a better fitting format.

An alternative solution could be to have fuck-you find similarly named processes and prompt the user for verification:

$ fuck you chrome
Do you mean 'google chrome' ? [y/N]
>

With possibly also:

$ fuck you chrome -f
(╯°□°)╯︵ǝɯoɹɥɔ ǝlɓooɓ(x1: 61002)
$

@nrj
Copy link
Author

nrj commented Nov 25, 2015

+1 for a .fuck-you config file.

# ~/.fuck-you
alias chrome="google chrome"

@danyshaanan
Copy link

@nrj It would be best to use some standard format that can be read without a home made parser. Think JSON and require, or YML and yaml-js.

@Br1ght0ne
Copy link

+1 for config, as something like fuck you atom won't work, you need to fuck you electron, so aliases would be pretty nice.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants