|
|
@ -91,6 +91,11 @@ export const reddit = async (args: string[]): Promise<string> => {
|
|
|
|
return `Searching reddit for ${args.join(' ')}...`;
|
|
|
|
return `Searching reddit for ${args.join(' ')}...`;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const stackoverflow = async (args: string[]): Promise<string> => {
|
|
|
|
|
|
|
|
window.open(`https://stackoverflow.com/search?q=${args.join(' ')}`);
|
|
|
|
|
|
|
|
return `Searching stack overflow for ${args.join(' ')}...`;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
// Typical linux commands
|
|
|
|
// Typical linux commands
|
|
|
|
export const echo = async (args: string[]): Promise<string> => {
|
|
|
|
export const echo = async (args: string[]): Promise<string> => {
|
|
|
|
return args.join(' ');
|
|
|
|
return args.join(' ');
|
|
|
@ -133,6 +138,11 @@ export const emacs = async (args?: string[]): Promise<string> => {
|
|
|
|
return `you know what? just use vscode.`;
|
|
|
|
return `you know what? just use vscode.`;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
export const vscode = async (args?: string[]): Promise<string> => {
|
|
|
|
|
|
|
|
window.open(`vscode://`);
|
|
|
|
|
|
|
|
return `opening god's favorite editor...`;
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
export const sudo = async (args?: string[]): Promise<string> => {
|
|
|
|
export const sudo = async (args?: string[]): Promise<string> => {
|
|
|
|
window.open('https://www.youtube.com/watch?v=dQw4w9WgXcQ', '_blank'); // ...I'm sorry
|
|
|
|
window.open('https://www.youtube.com/watch?v=dQw4w9WgXcQ', '_blank'); // ...I'm sorry
|
|
|
|
return `Permission denied: with little power comes... no responsibility? `;
|
|
|
|
return `Permission denied: with little power comes... no responsibility? `;
|
|
|
|