Atuin Has Forever Changed The Way I Use Command History

Поділитися
Вставка
  • Опубліковано 18 сер 2024
  • Atuin changed my workflow! Loving fzf so much I never thought anything could take over the history search feature. But with terminal restarts or tmux server changes I was constantly losing my history. Well, no more! Atuin takes care of it with a local DB and options for remote sync!
    Ways to support this channel:
    🎓 Build a Second Brain With Neovim in Under 90 Minutes: learn.omerxx.c...
    📰 Become a better engineer in just 3 minutes a week: signup.omerxx.com
    ⌨️ Tech I use: kit.co/omerxx/...
    ZimaBoard Official Shop: bit.ly/3zCxuPq
    ZimaBoard on Amazon: amzn.to/4d5WVHP
    ZimaBoard Media Server: bit.ly/3zMxpJi
    LINKS
    ▶ github.com/ome...
    ▶ atuin.sh/
    ⏱ Timestamps
    00:00 - Intro
    00:45 - fzf
    01:11 - Atuin
    05:43 - Sync
    06:13 - Zima Board!
    06:35 - Sync remotely
    #atuin #commandhistory #linux #macos #neovim #vim #nvim #tmux #terminal #config #dev #devops #software #development #dotfiles
  • Наука та технологія

КОМЕНТАРІ • 60

  • @elliehuxtable
    @elliehuxtable Місяць тому +35

    Hey! Atuin maintainer here, thanks for sharing my work - really liked your video!
    Glad it’s all been working well for you. Totally understand what you mean about the UI style, we are actually going to be making the compact view the default in v18.4 :)

    • @devopstoolbox
      @devopstoolbox  Місяць тому +3

      @@elliehuxtable amazing work! Waiting to see what comes out :)

  • @RazoBeckett.
    @RazoBeckett. Місяць тому +23

    nice tool bit overkill for me

  • @zehph
    @zehph Місяць тому +11

    Radical idea: save the zsh histfile to your self hosted cloud storage and alias the bugger on your machine with your initial setup script for a new box and keep using fzf for a consistent tooling across use cases

    • @devopstoolbox
      @devopstoolbox  Місяць тому +6

      I'm lucky I have a kid taking up all my weekend time otherwise I'd be doing this

    • @zehph
      @zehph Місяць тому +2

      @@devopstoolbox fair enough 😂
      Hang in there soldier! 💪

    • @armynyus9123
      @armynyus9123 Місяць тому

      thought about the same. Until I test installed this tool and hit ctrl-r. (called filter_mode in their docs...)
      with *my* skill issues this would prbly be not just the saturday...

    • @homfes
      @homfes Місяць тому

      histSearch() {
      local answer
      fc -R
      local runline="$(history 2000 | cut -c 8- | fzf --height 30 2>/dev/tty)"
      # remove all calls of this function from history file
      sed -i '/histSearch/d' $HISTFILE
      if [[ $runline != "" ]]; then
      #copy line into clipboard
      echo $runline | xclip -sel clip
      #confirm before running the commmand and insert command into the history file
      echo $runline
      echo -ne "run? [y/n] "
      read -q answer
      if [[ $answer = "y" ]]; then
      eval $runline
      fi
      fi
      }

    • @devopstoolbox
      @devopstoolbox  Місяць тому

      @@zehph 😅

  • @typecraft_dev
    @typecraft_dev Місяць тому +10

    this looks amazing! love the TUI

    • @devopstoolbox
      @devopstoolbox  Місяць тому +1

      It is! But beyond the user interface, the persistency with a local DB is so sweet

    • @threee1298
      @threee1298 Місяць тому +3

      the two of you are like 90% of the reason I’m still using nvim

    • @typecraft_dev
      @typecraft_dev Місяць тому +1

      @@threee1298 hell yeah brother

  • @jhonyortiz5
    @jhonyortiz5 Місяць тому +8

    Okay, as the vim user that you are, it's a crime that you didn't mention that atuin has vim key bendings. They do have to be abled I think. But honestly the part I love about atuin the most is that it makes shell functions available to bring up either the session, workstation, etc, history. So for example I have also set-up fish with vim key bindings and in normal mode I can press j or k to bring up the history, already in normal mode in atuin as well.
    Personally I don't care for the sync feature, and for dot files I use chezmoi anyways which is more than a sync system.

    • @devopstoolbox
      @devopstoolbox  Місяць тому +1

      Don't know how I missed that 😮
      Maybe I'd have to create a followup :)

  • @Danielo515
    @Danielo515 Місяць тому

    This has been in my todo list for one year. Happy to find a hands on to motivate me

  • @SunsetNova
    @SunsetNova Місяць тому

    Recently installed atuin and it’s awesome. So so useful

  • @SB-qm5wg
    @SB-qm5wg Місяць тому +2

    I like the filter option.

  • @Dtanphat9388
    @Dtanphat9388 Місяць тому +6

    i used C-r in fzf to search history

    • @devopstoolbox
      @devopstoolbox  Місяць тому +3

      @@Dtanphat9388 I used to do it as well, this is based on the same thing

  • @sumanth3036
    @sumanth3036 Місяць тому +7

    remotely useful tool that I did not wish for

    • @devopstoolbox
      @devopstoolbox  Місяць тому +5

      @@sumanth3036 I rely heavily on my history working with cloud APIs and Kubernetes controllers, the persistency here is key for me !

    • @aditya95sriram
      @aditya95sriram Місяць тому +4

      Well, not every tool he talks about is going to be relevant/useful for everyone.
      I, personally, feel like I can really get a lot out of this tool, e.g. specifically because of the cwd-storing part.

    • @nickmills8476
      @nickmills8476 Місяць тому +2

      When your history is full of complex commands, it’s nice to know which ones were successful.

  • @1234minecraft5678
    @1234minecraft5678 Місяць тому +1

    Have not seen the vid yet, but i think fzf has a great way to navigate through the history

    • @devopstoolbox
      @devopstoolbox  Місяць тому

      @@1234minecraft5678 this is based on the fzf concept (which was my tool of choice till this one) but atuin adds persistency, filtering and bunch of other cool features

    • @kaam_karlo-xz8nj
      @kaam_karlo-xz8nj 20 днів тому

      @@devopstoolbox FYI zsh with fzf and fzf-tab does have filtering, fuzzy search, scrolling with arrow keys, pressing enter. Atuin mainly adds server, encryption. fzf is a drop in replacement for ctrl+r

    • @1234minecraft5678
      @1234minecraft5678 6 днів тому

      @@devopstoolbox I do like the fact that we can set it up so that it logs most used commands and keeps the stats so that we can set up new aliases, while using fzf for the reverse search. i dislike their navigation, i prefer vim bindings with ctrl like in fzf, because i have that set up for everything else.

    • @1234minecraft5678
      @1234minecraft5678 6 днів тому

      *What i dislike is that it proves, that my personal pc usage is very basic ;D i consider myself a power user, but my most used command is "clear" hell nah.

  • @maxietheboss
    @maxietheboss Місяць тому +1

    I would love to find a tool that is similar to this but that also saves the command output. As I do penetration tests it's very useful to have a history of command output as well for reporting and logging purposes. Right now I use asciinema to record a terminal session or use tmux logging, but that's just one big dump of a session instead of a searchable database.

    • @devopstoolbox
      @devopstoolbox  Місяць тому

      @@maxietheboss I can see how something like that gets quickly out of hand but if there’s something ready for the task it’s probably atuin. Maybe open an issue and ask them?
      You can also find a core maintainer here in the comments!

    • @ChrisCox-wv7oo
      @ChrisCox-wv7oo 25 днів тому

      Check out the utility script, as well as tee. Script allows you to record all of your commands and console output. Tee allows you to redirect the output of a command to a file.
      I'm not sure that I want the output of every command I ever run to be saved, that seems like a lot of noise to sift through later on.
      Sitting under maybe a bit sage and organized to a database that can be elastic searched over

  • @summerWTFE
    @summerWTFE Місяць тому +3

    Holy shit, I would never trust a random server with that kind of info.

    • @devopstoolbox
      @devopstoolbox  Місяць тому

      @@summerWTFE honestly, this was my first thought exactly. There’s no 100% guarantees but I did look into the encryption and filtering rules to skip most of the probable issues. You can skip the sync though and just use it locally like I imagine most users do

    • @mintcar
      @mintcar Місяць тому +2

      You can self host it

    • @devopstoolbox
      @devopstoolbox  Місяць тому

      @@mintcar exactly :)

  • @AlaaSaidAhmad
    @AlaaSaidAhmad Місяць тому +1

    What the fonts did you use and how did you configuration your terminal ❤ pls

    • @devopstoolbox
      @devopstoolbox  Місяць тому +1

      Hi! My font is usually jet brains mono.
      You have my full setup here: ua-cam.com/video/yCgieVu13VQ/v-deo.htmlsi=54RXguXV7naPpyzt

  • @Flaviongas
    @Flaviongas 13 днів тому

    What do you use for showing the keys pressed on screen?

  • @souzaxx
    @souzaxx Місяць тому +1

    let’s gooo

  • @narenderpamu
    @narenderpamu Місяць тому

    what is the terminal used here with blur?

  • @hesperauxyo
    @hesperauxyo Місяць тому +3

    Lotta hate for this tool in the comments. I personally really like this idea.
    If I save remote history and go offline will it spool it up locally until I'm back online? If so I'mma definitely setup a server for this.

    • @elliehuxtable
      @elliehuxtable Місяць тому +2

      @@hesperauxyo it does! It’s built to be fully offline first, you can go offline for as long as you want and everything is reconciled when you get a connection

    • @hesperauxyo
      @hesperauxyo Місяць тому +1

      @@elliehuxtable badass. 👍🏻👍🏻

    • @nickmills8476
      @nickmills8476 Місяць тому +1

      Surprisingly polarizing topic, I guess because it’s so close to the core of how folks use the CLI. People have come up with their own hard fought ways to handle their own special use cases, and are resistant to listen to other possibilities. More power to the optimizers.

  • @YEM_
    @YEM_ Місяць тому

    Tell me, do you like it better than fzf?

  • @hungvx-dev
    @hungvx-dev Місяць тому +1

    Hi. What is the bluring transparent browser? ua-cam.com/video/Em0TdAftXAA/v-deo.htmlm44s

    • @devopstoolbox
      @devopstoolbox  Місяць тому +1

      @@hungvx-dev sorry to disappoint this is a normal browser (Arc) with a few video editing plugins to make it look like this :)

    • @hungvx-dev
      @hungvx-dev Місяць тому +1

      @@devopstoolbox thank you. :D

  • @RuanSilva-kk1gq
    @RuanSilva-kk1gq Місяць тому +1

    seccond

  • @user-pc4i8ege55
    @user-pc4i8ege55 Місяць тому +1

    What a waste of precious screen estate! The author could have saved three lines by getting rid of pseudographics alone.

    • @ViRMiN8r
      @ViRMiN8r Місяць тому +2

      You can get the space back by setting the style to compact and disabling the help text in a config file.

    • @user-pc4i8ege55
      @user-pc4i8ege55 Місяць тому

      @@ViRMiN8r that's great. Thanks!

    • @devopstoolbox
      @devopstoolbox  Місяць тому +3

      @@user-pc4i8ege55 you can change the style to something leaner. I also prefer minimal setups and only the information that’s relevant

    • @zestynotions
      @zestynotions Місяць тому +1

      @@devopstoolbox I imagine that you also zoom in for the video thus it looks like even less screen real estate than there really is?

    • @devopstoolbox
      @devopstoolbox  Місяць тому

      @@zestynotions ah yes of course