feat: added more cool commands

pull/31/merge^2
Faiyaz 3 years ago
parent 6946b2bc2a
commit e2a2cb49ba

@ -76,7 +76,7 @@ export const google = async (args: string[]): Promise<string> => {
};
export const duckduckgo = async (args: string[]): Promise<string> => {
window.open(`https://duckduckgo.com/?q=${args.join(' ')}`);
window.open(`https://duckduckgo.com/?q=${args.join(' ')} `);
return `Searching duckduckgo for ${args.join(' ')}...`;
};
@ -121,7 +121,7 @@ export const vi = async (args: string[]): Promise<string> => {
};
export const vim = async (args: string[]): Promise<string> => {
return `'vim' is so outdated. how about 'nvim'?`;
return `'vim' is vintage. but i've heard 'nvim' is cool.`;
};
export const nvim = async (args: string[]): Promise<string> => {
@ -137,6 +137,23 @@ export const sudo = async (args?: string[]): Promise<string> => {
return `Permission denied: with little power comes... no responsibility? `;
};
export const sudo = async (args?: string[]): Promise<string> => {
window.open('https://www.youtube.com/watch?v=dQw4w9WgXcQ', '_blank'); // ...I'm sorry
return `Permission denied: with little power comes... no responsibility?, at least you aren't bloated `;
};
export const env = async (args?: string[]): Promise<string> => {
return `whatcha looking for over here`;
};
export const shutdown = async (args?: string[]): Promise<string> => {
return `nice try, try reboot instead`;
};
export const reboot = async (args?: string[]): Promise<string> => {
return `why do you hate me`;
};
// Banner
export const banner = (args?: string[]): string => {
return `

@ -8,7 +8,7 @@ const sumfetch = async (args: string[]): Promise<string> => {
${config.name}
${config.ps1_hostname}
<u><a href="${config.resume_url}" target="_blank">resume</a></u>
<u><a href="${config.repo}" target="_blank">Github repo</a></u>
<u><a href="${config.repo}" target="_blank">Github repo</a></u>
-----------
CONTACT
<u><a href="mailto:${config.email}" target="_blank">${config.email}</a></u>

Loading…
Cancel
Save