40
submitted 2 days ago by thingsiplay@lemmy.ml to c/linux@lemmy.ml

It can't hurt to share some of you current helpers. Either someone else might get inspired by or in some cases you get suggestions how to make it better. Bash, Zsh, Fish or whatever shell script, command or alias (or abbreviation) you have, share here. Always fun to do so! I share mine in the comments, just like everybody else.

you are viewing a single comment's thread
view the rest of the comments
[-] n0p1lls@piefed.zip 3 points 1 day ago

Here are some of my aliases:

alias rg='rgrep'  
alias fdf='fdfind'  
alias viman='/usr/bin/vim +"call library#manual_argv()"'  
alias matrix-msg='element-desktop --password-store="gnome-libsecret"'  
alias run-nvidia-graphics='__NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia'  

I use Debian BTW

[-] GaumBeist@lemmy.ml 4 points 23 hours ago

Would you please explain that vim one?

[-] n0p1lls@piefed.zip 3 points 23 hours ago* (last edited 23 hours ago)

It's for manual pages. You can navigate them as if you were in vim. IIRC, you should add this line to your vimrc and it should work:

runtime! ftplugin/man.vim

Plus, you need to pass a command as an arg to 'viman'. Example: viman ls

Edit: Sorry, I forgot an important detail. I also have a file in my autoload vim folder with this code:

fun! library#manual_argv ()
        let argv = argv()
        let arguments = join(argv, ' ')
        exe 'Man' arguments
        only
endfun

I think I got the idea from someone on Github, or maybe Distrotube (the youtuber).

this post was submitted on 02 Dec 2026
40 points (97.6% liked)

Linux

69006 readers
446 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS