diff --git a/config.json b/config.json index d1fa47c..1b55370 100644 --- a/config.json +++ b/config.json @@ -1,21 +1,16 @@ { - "readmeUrl": "https://raw.githubusercontent.com/cveinnt/cveinnt/master/README.md", - "title": "LiveTerm", - "name": "John Doe", + "readmeUrl": "https://raw.githubusercontent.com/purofle/purofle/master/README.md", + "title": "archlinux", + "name": "archlinux.tech owner", "ascii": "liveterm", "social": { - "github": "github", - "linkedin": "linkedin" + "github": "https://github.com/purofle" }, - "email": "contact@email.com", - "ps1_hostname": "liveterm", + "email": "purofle@gmail.com", + "ps1_hostname": "archlinux", "ps1_username": "visitor", "repo": "https://github.com/Cveinnt/LiveTerm", "resume_url": "https://upload.wikimedia.org/wikipedia/commons/c/cc/Resume.pdf", - "donate_urls": { - "paypal": "https://paypal.me/cveinnt", - "patreon": "https://patreon.com/cveinnt" - }, "colors": { "light": { "background": "#FBF1C9", diff --git a/src/utils/bin/commands.ts b/src/utils/bin/commands.ts index 338c9f8..ff154a5 100644 --- a/src/utils/bin/commands.ts +++ b/src/utils/bin/commands.ts @@ -3,6 +3,10 @@ import * as bin from './index'; import config from '../../../config.json'; +function urla(herf: String, text: String): String { + return `${text}` +} + // Help export const help = async (args: string[]): Promise => { const commands = Object.keys(bin).sort().join(', '); @@ -44,6 +48,7 @@ export const resume = async (args: string[]): Promise => { }; // Donate +/* export const donate = async (args: string[]): Promise => { return `thank you for your interest. here are the ways you can support my work: @@ -51,6 +56,7 @@ here are the ways you can support my work: - patreon `; }; +*/ // Contact export const email = async (args: string[]): Promise => { @@ -64,11 +70,14 @@ export const github = async (args: string[]): Promise => { return 'Opening github...'; }; + +/* export const linkedin = async (args: string[]): Promise => { window.open(`https://www.linkedin.com/in/${config.social.linkedin}/`); return 'Opening linkedin...'; }; +*/ // Search export const google = async (args: string[]): Promise => { @@ -138,6 +147,10 @@ export const sudo = async (args?: string[]): Promise => { return `Permission denied: with little power comes... no responsibility? `; }; +export const url = async (args?: string[]): Promise => { + return `Alist: ${urla("https://alist.archlinux.tech", "alist.archlinux.tech")}\nMy blog: ${urla("https://blog.archlinux.tech", "blog.archlinux.tech")}`; +} + // Banner export const banner = (args?: string[]): string => { return ` @@ -153,5 +166,7 @@ export const banner = (args?: string[]): string => { Type 'help' to see the list of available commands. Type 'sumfetch' to display summary. Type 'repo' or click here for the Github repository. +Type 'url' to see how do I use this domain. `; }; + diff --git a/src/utils/bin/sumfetch.ts b/src/utils/bin/sumfetch.ts index e55686e..cef0a4a 100644 --- a/src/utils/bin/sumfetch.ts +++ b/src/utils/bin/sumfetch.ts @@ -13,33 +13,24 @@ const sumfetch = async (args: string[]): Promise => { @@ @@ ----------- @@ .@@@@@@@@@@. @@  CONTACT @@ @@ @@ @@  ${config.email} - @@ @@ @@ @@  github.com/${config.social.github} - @@ @@@@@@ @@  linkedin.com/in/${config.social.linkedin} - @@@ @@@ ----------- - @@@ @@@ @@  DONATE - @| @@@@@@@@@@@@@@@@ @@  ${config.donate_urls.paypal} - @| @@  ${config.donate_urls.patreon} - -`; + @@ @@ @@ @@  github.com/${config.social.github}`; } else { return ` ▄▓▓▓▓▓▓▓▓▓▓▓▓▓▓▄   sumfetch ▄▓▓▀ ▄▓▓▀▓▓▓▀▓▓▄ ▀▀▓▓▄  ----------- ▓▓▀ ▄▓▀  ▐▓▓ ▀▓▓  ▓▓▄   ABOUT ▄▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓   ${config.name} - ▓▓ ▓▓▓  ▐▓▓  ▐▓▓  ▓▓   resume + ▓▓ ▓▓▓  ▐▓▓  ▐▓▓  ▓▓ ▐▓▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▓ 爵 Github repo ▐▓  ▐▓ ----------- -▐▓  > L I V E T E R M ▐▓  CONTACT +▐▓  > A R C H L I N U X ▐▓  CONTACT ▐▓  ▐▓  ${config.email} ▐▓▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▓  github.com/${config.social.github} - ▓▓ ▐▓▓  ▓▓  ▐▓▓  ▓▓   linkedin.com/in/${config.social.linkedin} + ▓▓ ▐▓▓  ▓▓  ▐▓▓  ▓▓ ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓  ----------- - ▓▓▓  ▐▓▓  ▓▓  ▓▓▓ ▓▓▀   DONATE - ▀▓▓▄▄ ▀▓▓▄▓▓▄▓▓▓▄▄▓▓▀   ${config.donate_urls.paypal} - ▀▓▓▓▓▓▓▓▓▓▓▓▀▀   ${config.donate_urls.patreon} - -`; + ▓▓▓  ▐▓▓  ▓▓  ▓▓▓ ▓▓▀ + ▀▓▓▄▄ ▀▓▓▄▓▓▄▓▓▓▄▄▓▓▀ + ▀▓▓▓▓▓▓▓▓▓▓▓▀`; } };