• 0 Posts
  • 3 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle
  • bobo@lemmy.worldtolinuxmemes@lemmy.worldsiempre lo hago
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    18 days ago

    Bash will also do autocomplete for cli programs that have autocomplete functionality. Try typing:

    git r<tab><tab>

    you’ll see options for all the git commands that start with r. Often cli commands will have autocompletion for long (double dash) options.

    If you want to see all the commands that have auto complete available, look in:

    /usr/share/bash-completion/completions/

    There’s a few other locations they can live, notably:

    /etc/bash_completion.d/ ~/.bash_completion ~/.local/share/bash-completion/completions/

    I don’t know if there are more or if there is any variation per distro.

    You can also write your own bash completions. They can get pretty smart and context sensitive.

    Pretty good beginning tutorial:

    https://iridakos.com/programming/2018/03/01/bash-programmable-completion-tutorial

    edit - I should’ve mentioned that this isn’t native to bash, it requires installation of bash-completion. But bash-completion is installed by default in many distros.


  • I’d really like independent workspaces per display. I haven’t explored how to set it up in my current environments (I use primarily KDE, sometimes Gnome, and still occasionally XFCE). I’m not sure it’s even possible. I understand there’s quite a bit of customization of workspaces coming with Cosmic, but I haven’t checked it out.

    I do have some resistance to tiling window managers. Primarily because my wife occasionally uses my computer, and I can already see her rolling her eyes in frustration at me. How’s the learning curve for awesome?



  • Keep a stock message on your phone to cut and paste whenever an iPhone user sends you a potato-quality video. This is mine:

    Please don’t send video to me via iMessage from your iPhone. In fact, you really shouldn’t send video via iMessage at all. Video sent by Apple looks terrible on non-iOS phones. This is not a shortcoming of other phones, this is entirely Apple’s fault and is their explicit intention. If you want to send a video from your iPhone, you can open the Photos app, tap the share button, and select “share as an iCloud link”. That will enable All users to view your glorious video of your cat/kids/dinner/vacation/rant/whatever in the high resolution that your overpriced phone is capable of. Another option is to send the video using a messaging app such as Signal or WhatsApp. Alternate messaging apps are what most of the world use in lieu of sms/mms text messaging.

    This is a form letter response and you will get it every time you send me video from your iPhone via iMessage.

    P.S. I love you