Skip to content

Commit

Permalink
Aliases updated old post deleted
Browse files Browse the repository at this point in the history
  • Loading branch information
DarkXero-dev committed Aug 27, 2024
1 parent 3987b90 commit e34b882
Show file tree
Hide file tree
Showing 25 changed files with 94 additions and 4,193 deletions.
22 changes: 20 additions & 2 deletions content/posts/linux-aliases/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ Are you sick and tired of having to type the lengthy update commands in terminal

Basically, they are custom user created commands, by you, that execute various actions. However, I would highly recommend you check if you have any tools installed that have similar ones, and avoid replicating or replacing them.

{{< youtube 4v4Mcncvsac >}}

### How to create Aliases

First, before you start, you will have to know what shell you are using, as different ones use different config files. In case of **Bash** you will have to edit the `.bashrc` file found in your home directory's root. And in the case of **ZSH**, it will be the `.zshrc` file found at that same location and so on.
Expand All @@ -30,7 +32,7 @@ alias shortcmd="actualcmd"
Update Example (Arch) :

```Bash
alias update="sudo pacman -Syu"
alias up="sudo pacman -Syu"
```

Update Example (Debian) :
Expand All @@ -39,7 +41,23 @@ Update Example (Debian) :
alias update="sudo apt update && sudo apt upgrade"
```

Now save your file, restart your terminal and test them out. The sky's the limit as how many you can create. I use a ton of them in **XeroLinux**. To check them out visit this link >> [**XeroLinux Aliases**](https://github.com/xerolinux/xero-fixes/blob/main/conf/.bashrc).
You can also use aliases to execute scripts and edit files among many many many other things. They are amazing. I use a ton of them in **XeroLinux**. To check them out visit this link >> [**XeroLinux Aliases**](https://github.com/xerolinux/xero-fixes/blob/main/conf/.bashrc).

Quick examples :

- Edit Pacman.conf

```Bash
alias npcm="sudo nano /etc/pacman.conf"
```

- Execute script :

```Bash
alias cmd="/path/to/script/sript.sh"
```

You get the idea. Now save your file, restart your terminal and test them out. The sky's the limit as how many you can create.

### Wrapping up

Expand Down
Binary file removed content/posts/terminal-aliases/featured.webp
Binary file not shown.
14 changes: 0 additions & 14 deletions content/posts/terminal-aliases/index.md

This file was deleted.

2 changes: 1 addition & 1 deletion public/index.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions public/posts/flatpak-theming/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2063,11 +2063,11 @@ <h2 class="mt-8 text-2xl font-extrabold mb-10">Related</h2>
</span>
<span>

<a class="flex text-right group ml-3" href="/posts/terminal-aliases/">
<a class="flex text-right group ml-3" href="/posts/tabby-terminal/">
<span class="flex flex-col">
<span
class="mt-[0.1rem] leading-6 group-hover:underline group-hover:decoration-primary-500"
>Terminal Aliases</span
>Tabby Terminal</span
>
<span class="mt-[0.1rem] text-xs text-neutral-500 dark:text-neutral-400">

Expand Down
201 changes: 0 additions & 201 deletions public/posts/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7405,207 +7405,6 @@ <h1 class="mt-5 text-4xl font-extrabold text-neutral-900 dark:text-neutral"></h1



</div>



</div>


</div>
<div class="px-6 pt-4 pb-2">

</div>
</div>
</a>




<a href="/posts/terminal-aliases/" class="min-w-full">

<div class="min-h-full border border-neutral-200 dark:border-neutral-700 border-2 rounded overflow-hidden shadow-2xl relative">

<div class="w-full thumbnail_card nozoom" style="background-image:url(/posts/terminal-aliases/featured.webp);"></div>



<div class="px-6 py-4">


<div class="font-bold text-xl text-neutral-800 decoration-primary-500 hover:underline hover:underline-offset-2 dark:text-neutral"
href="/posts/terminal-aliases/">Terminal Aliases</div>


<div class="text-sm text-neutral-500 dark:text-neutral-400">






































<div class="flex flex-row flex-wrap items-center">


<time datetime="2024-06-27 00:00:00 &#43;0000 UTC">27 June 2024</time><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">1 min</span><span class="px-2 text-primary-500">&middot;</span><span>












<span id="views_posts/terminal-aliases/index.md" class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400" title="views">loading</span>
<span class="inline-block align-text-bottom">

<span class="relative block icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512">
<path fill="currentColor" d="M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM432 256c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM288 192c0 35.3-28.7 64-64 64c-11.5 0-22.3-3-31.6-8.4c-.2 2.8-.4 5.5-.4 8.4c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-2.8 0-5.6 .1-8.4 .4c5.3 9.3 8.4 20.1 8.4 31.6z"/></svg>
</span>

</span>
</span><span class="px-2 text-primary-500">&middot;</span><span>












<span id="likes_posts/terminal-aliases/index.md"
class="animate-pulse inline-block text-transparent max-h-3 rounded-full mt-[-2px] align-middle bg-neutral-300 dark:bg-neutral-400"
title="likes">loading</span>
<span class="inline-block align-text-bottom">

<span class="relative block icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512">
<path fill="currentColor" d="M47.6 300.4L228.3 469.1c7.5 7 17.4 10.9 27.7 10.9s20.2-3.9 27.7-10.9L464.4 300.4c30.4-28.3 47.6-68 47.6-109.5v-5.8c0-69.9-50.5-129.5-119.4-141C347 36.5 300.6 51.4 268 84L256 96 244 84c-32.6-32.6-79-47.5-124.6-39.9C50.5 55.6 0 115.2 0 185.1v5.8c0 41.5 17.2 81.2 47.6 109.5z"/></svg>
</span>

</span>
</span>




</div>


<div class="flex flex-row flex-wrap items-center">











</div>




<div class="flex flex-row flex-wrap items-center">












<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/terminal/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
Terminal
</span>
</span>
</span>

<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/aliases/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
Aliases
</span>
</span>
</span>

<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/arch/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
Arch
</span>
</span>
</span>

<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/alias/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
Alias
</span>
</span>
</span>

<span style="margin-top:0.5rem" class="mr-2" onclick="window.open(&#34;/tags/linux/&#34;,'_self');">
<span class="flex" style="cursor: pointer;">
<span class="rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400">
Linux
</span>
</span>
</span>




</div>


Expand Down
10 changes: 0 additions & 10 deletions public/posts/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -488,16 +488,6 @@
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://xerolinux.xyz/posts/tabby-terminal/featured.webp" />
</item>

<item>
<title>Terminal Aliases</title>
<link>https://xerolinux.xyz/posts/terminal-aliases/</link>
<pubDate>Thu, 27 Jun 2024 00:00:00 +0000</pubDate>

<guid>https://xerolinux.xyz/posts/terminal-aliases/</guid>
<description>A quick one today, a video by DistroTube popped up that explains shell aliases and how to create your very own.</description>
<media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://xerolinux.xyz/posts/terminal-aliases/featured.webp" />
</item>

<item>
<title>Theming Flatpaks</title>
<link>https://xerolinux.xyz/posts/flatpak-theming/</link>
Expand Down
Loading

0 comments on commit e34b882

Please sign in to comment.