diff --git a/src/utils/bin/commands.ts b/src/utils/bin/commands.ts index 66443c9..338c9f8 100644 --- a/src/utils/bin/commands.ts +++ b/src/utils/bin/commands.ts @@ -70,6 +70,27 @@ export const linkedin = async (args: string[]): Promise => { return 'Opening linkedin...'; }; +// Search +export const google = async (args: string[]): Promise => { + window.open(`https://google.com/search?q=${args.join(' ')}`); + return `Searching google for ${args.join(' ')}...`; +}; + +export const duckduckgo = async (args: string[]): Promise => { + window.open(`https://duckduckgo.com/?q=${args.join(' ')}`); + return `Searching duckduckgo for ${args.join(' ')}...`; +}; + +export const bing = async (args: string[]): Promise => { + window.open(`https://bing.com/search?q=${args.join(' ')}`); + return `Wow, really? You are using bing for ${args.join(' ')}?`; +}; + +export const reddit = async (args: string[]): Promise => { + window.open(`https://www.reddit.com/search/?q=${args.join(' ')}`); + return `Searching reddit for ${args.join(' ')}...`; +}; + // Typical linux commands export const echo = async (args: string[]): Promise => { return args.join(' ');