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.

  • n0p1lls@piefed.zip
    link
    fedilink
    English
    arrow-up
    3
    ·
    12 hours 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

      • n0p1lls@piefed.zip
        link
        fedilink
        English
        arrow-up
        3
        ·
        edit-2
        9 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).