• katy ✨@lemmy.blahaj.zone
    link
    fedilink
    arrow-up
    0
    ·
    18 days ago

    i like how it’s’ easier for me to do less ~/.bash_history | grep <some part of a command i want to us> instead of just doing an alias.

  • tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    0
    ·
    18 days ago

    up arrow

    If readline hasn’t been reconfigured from the default emacs mode, you can use Control-P and keep your fingers on the home row.

    • a14o@feddit.orgOP
      link
      fedilink
      arrow-up
      0
      ·
      18 days ago

      That’s what I actually use (and ctrl-r also quite a bit), but up arrow for the meme

  • Lucy :3@feddit.org
    link
    fedilink
    arrow-up
    0
    ·
    18 days ago

    I basically exclusively use Ctrl+R. Even if I need to enter all but one characters of the command in question.

  • UnityDevice@lemmy.zip
    link
    fedilink
    English
    arrow-up
    0
    ·
    18 days ago

    fzf makes ctrl-r really nice so you use it more often, especially if you use tmux as well.

  • hera@feddit.uk
    link
    fedilink
    English
    arrow-up
    0
    ·
    18 days ago

    Or do as I do, set up aliases for everything and forget out to use the actual commands

  • Psaldorn@lemmy.world
    link
    fedilink
    arrow-up
    0
    ·
    18 days ago

    Using gs, ga and gc for git bullshit has saved me many a keystroke. They show the current status, last log and prompt me for commit message and everything!

  • Enzy@lemm.ee
    link
    fedilink
    arrow-up
    0
    ·
    edit-2
    18 days ago

    I have an alias named cock and I don’t remember what it does

    Edit: shit

  • Ephera@lemmy.ml
    link
    fedilink
    English
    arrow-up
    0
    ·
    18 days ago

    This is pretty much the biggest reason why I like fish. It automatically runs Ctrl+R as soon as you start typing and shows it as auto-completion suggestion.
    You would not believe all the things past-me has run in their terminal, that I would never think to Ctrl+R. It’s like the AI stuff the whole IT world rages about, except past-me has real intelligence.

  • tal@lemmy.today
    link
    fedilink
    English
    arrow-up
    0
    ·
    18 days ago

    You can list your aliases in bash pretty readily.

    $ alias
    alias emacs='emacs --no-site-file'
    alias ls='ls --color=tty -v'
    $
    
      • tal@lemmy.today
        link
        fedilink
        English
        arrow-up
        0
        ·
        18 days ago
        $ git clone https://github.com/sharkdp/vivid.git
        $ cd vivid && cargo build && cd ..
        $ grep -v "^  nord" <vivid/themes/nord.yml| >theme-template.yml
        $ csplit theme-template.yml /^colors:/1 -f "theme-template"
        $ sudo apt install cimg-dev
        $ git clone https://github.com/ImageProcessing-ElectronicPublications/palette.git
        $ cd palette
        $ mkdir build && cd build && cmake ../ && cmake --build .
        $ wget https://titis.org/uploads/posts/2022-01/1641518772_4-titis-org-p-nude-breasts-close-up-erotika-4.jpg
        $ convert -crop 2298x1041+1878+1560 1641518772_4-titis-org-p-nude-breasts-close-up-erotika-4.jpg cropped.png
        $ ./build/cpluspalette cropped.png 16 -k|tail -n+2|tr -s '[:cntrl:]' '\n'|sed s/^.//|awk "/.*/ {print \"  nord\"NR-1\": '\"\$0\"'\"}" >../titty-colors.txt
        $ export LS_COLORS=$(../vivid/target/debug/vivid generate <(cat ../theme-template00 ../titty-colors.txt ../theme-template01))
        $ clear
        $ ls
        

  • GlenRambo@jlai.lu
    link
    fedilink
    English
    arrow-up
    0
    ·
    18 days ago

    Ive been using Kali in a lab lately and the terminal seems to remember commands and prefills them. How do I do Something like that in Mint?

    • a14o@feddit.orgOP
      link
      fedilink
      arrow-up
      0
      ·
      18 days ago

      There’s probably many different ways to achieve this but I would probably use a shell (zsh or fish) that does this by default

  • Schiffsmädchenjunge@sh.itjust.works
    link
    fedilink
    arrow-up
    0
    ·
    18 days ago

    I just load bash.history in Kate or whatever and ctrl-f the command, copy the line, insert that in the terminal, adapt if necessary and go. Unless it’s one of the last ten or so I used, then it’s just ⬆️⬆️⬇️⬇️⬅️➡️⬅️➡️🅱️🅰️