Bash alias launcher
-
- Samurai
- Posts: 143
- Joined: 10 Aug 2016, 05:36
- Distribution: Porteux V-0.1 64 KDE
- Location: Utopia in Tampa, Florida, USA
Bash alias launcher
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 here are screenshots and files
https://drive.google.com/drive/folders/ ... drive_link
Hope someone finds this useful and / or ridiculous.
Vic
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 here are screenshots and files
https://drive.google.com/drive/folders/ ... drive_link
Hope someone finds this useful and / or ridiculous.
Vic
Last edited by Vic on 16 Jul 2024, 23:49, edited 1 time in total.
Bash alias launcher
Did you try
Code: Select all
alias | fzf
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
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
-
- Samurai
- Posts: 143
- Joined: 10 Aug 2016, 05:36
- Distribution: Porteux V-0.1 64 KDE
- Location: Utopia in Tampa, Florida, USA
Bash alias launcher
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
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
-
- Samurai
- Posts: 143
- Joined: 10 Aug 2016, 05:36
- Distribution: Porteux V-0.1 64 KDE
- Location: Utopia in Tampa, Florida, USA
Bash alias launcher
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
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
-
- Samurai
- Posts: 143
- Joined: 10 Aug 2016, 05:36
- Distribution: Porteux V-0.1 64 KDE
- Location: Utopia in Tampa, Florida, USA
Bash alias launcher
I have updated the G-Drive share. with two files.
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
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
Last edited by Vic on 16 Jul 2024, 23:54, edited 1 time in total.
-
- Samurai
- Posts: 143
- Joined: 10 Aug 2016, 05:36
- Distribution: Porteux V-0.1 64 KDE
- Location: Utopia in Tampa, Florida, USA
Bash alias launcher
I have updated the GDrive link in my first post and included the files I am using at this point in time.
Vic
Vic
-
- Samurai
- Posts: 143
- Joined: 10 Aug 2016, 05:36
- Distribution: Porteux V-0.1 64 KDE
- Location: Utopia in Tampa, Florida, USA
Bash alias launcher
Once again I have updated the GDrive link in my first post and included the files I am using at this point in time.
I really like the freedom of not depending on an OS with any desktop.
Am working to change all the pointers for dedicated programs and use "xdg-open" to let the OS determine the default program.
This is so cool.
Vic
I really like the freedom of not depending on an OS with any desktop.
Am working to change all the pointers for dedicated programs and use "xdg-open" to let the OS determine the default program.
This is so cool.
Vic
Bash alias launcher
Just a tip about bypassing an alias temporarily. Backslash it!
For example, the default alias for LS produces a listing in color. If however I don't want color temporarily, and just want to go with the default:
Backslash has come in handy during scripting without me having to muck about with changing the alias, or the use of commandline switches if the default with no alias serves my purpose. Just a hint in case this comes in handy.
For example, the default alias for LS produces a listing in color. If however I don't want color temporarily, and just want to go with the default:
Code: Select all
\ls
That's a UNIX book - cool. -Garth
Bash alias launcher
Hey Vic, that's a creative approach to building an application launcher! Using a .bashrc file with a formatted list of aliases is a clever way to create a menu system without relying on any specific program or OS.Vic wrote: ↑18 Jun 2024, 02:22I 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 here are screenshots and files
https://drive.google.com/drive/folders/ ... drive_link
Hope someone finds this useful and / or ridiculous.
Vic
I can see how it would be useful to have a quick way to access your frequently used commands and scripts. The fact that you can expand it with scripts to do more complex tasks is a big plus.
Bash alias launcher
Love the creativity behind Vic's bash alias launcher! Using a .bashrc file to create a menu system is genius. And the fact that it can be expanded with scripts to do more complex tasks is a huge bonus.
-
- Samurai
- Posts: 143
- Joined: 10 Aug 2016, 05:36
- Distribution: Porteux V-0.1 64 KDE
- Location: Utopia in Tampa, Florida, USA
Bash alias launcher
Hi everybody
I have added some things and changed others.
Here is the link... again.
https://drive.google.com/drive/folders/ ... sp=sharing
Remember to have fun,
Vic
I have added some things and changed others.
Here is the link... again.
https://drive.google.com/drive/folders/ ... sp=sharing
Remember to have fun,
Vic