Bash alias launcher

Non release banter
Vic
Samurai
Samurai
Posts: 131
Joined: 10 Aug 2016, 05:36
Distribution: Porteux V-0.1 64 KDE
Location: Utopia in Tampa, Florida, USA

Bash alias launcher

Post#1 by Vic » 18 Jun 2024, 02:22

I have been attempting to create an application launcher that does not need any special program, including the operating system.

After taking the KDE start menu to the end of my limits I dove into 9menu and expanded it as far as I could. I also looked at what Firefox could do. Alot. Add an html file and you have great capabilities, but you are relying on Firefox, and the same with 9menu and KDE.

I have been using bash aliases for a long time but not happy with the access. Type "alias" and there is a long list. So I decided to make a .bashrc file with only the text

echo " aliases "

where " aliases " are columns of aliases to copy n paste.

It took a while to get it all to line up in Kwrite but on a 1366 x 768 laptop display I now can see a 14 column menu with 20 to 30 items in each column. A double click , paste and enter gives whatever I want. The use of scripts expand the bash menu to do much more.

If anyone is interested I can share the .bashrc files and / or the modules I made. The rc files and scripts are in .xzm modules that places them in /root and /opt respectively.

Here is a pic:

https://drive.google.com/file/d/1QOHivw ... sp=sharing

Hope someone finds this useful and / or ridiculous.

Vic

User avatar
M. Eerie
Moderator
Moderator
Posts: 649
Joined: 31 Aug 2017, 21:18
Distribution: Nemesis Xfce/MATE x64

Bash alias launcher

Post#2 by M. Eerie » 18 Jun 2024, 08:50

Vic wrote:
18 Jun 2024, 02:22
Type "alias" and there is a long list
Did you try

Code: Select all

alias | fzf
B)

Also, I think it is a good practice to have all the aliases in a file, let's call it ".bash_aliases", and invoke them by including the following line in your .bashrc

Code: Select all

source ~/.bash_aliases
> Does not compute_ 🖖

https://forum.porteus.org/viewtopic.php?p=94310#p94310
https://forum.porteus.org/viewtopic.php?p=84002#p84002
https://forum.porteus.org/viewtopic.php?p=77174#p77174
https://forum.porteus.org/viewtopic.php?f=39&t=8584

Vic
Samurai
Samurai
Posts: 131
Joined: 10 Aug 2016, 05:36
Distribution: Porteux V-0.1 64 KDE
Location: Utopia in Tampa, Florida, USA

Bash alias launcher

Post#3 by Vic » 18 Jun 2024, 11:07

Hi M. Eerie

Thanks for replying.

My goal is still to use only programs that are included by default, just like my other post about schematics-2-text.
fzf is not present on my Porteux so that one is out. Plus it would have no way to know how I want the aliases to be presented.

I agree with you about dedicated alias files, which is why I made a 23 KiB file named .bashrc-01.
I reference it with the alias "01" so it is easy to type on the numpad.

Vic

Vic
Samurai
Samurai
Posts: 131
Joined: 10 Aug 2016, 05:36
Distribution: Porteux V-0.1 64 KDE
Location: Utopia in Tampa, Florida, USA

Bash alias launcher

Post#4 by Vic » 25 Jun 2024, 12:58

I am continuing with my idea of a terminal based launcher.

Still using the numpad starting at 00 for the table of contents on up to 04. Am trying different approaches to get a feel for ease of use.

Here is the link --- https://drive.google.com/drive/folders/ ... drive_link

As usual, if anyone is interested for more info just ask.

Vic

Vic
Samurai
Samurai
Posts: 131
Joined: 10 Aug 2016, 05:36
Distribution: Porteux V-0.1 64 KDE
Location: Utopia in Tampa, Florida, USA

Bash alias launcher

Post#5 by Vic » 04 Jul 2024, 19:16

I have updated the G-Drive share with two files. Link ---

https://drive.google.com/drive/folders/ ... drive_link

Place them with your .bashrc and add


. /root/.bashrc-MAIN-ROOT

alias 06='/root/.bashrc-06'


to your .bashrc file.


I use KDE with Dolphin and Kwrite, so if you use another DE the pointers will need to be changed.


Vic

Post Reply