Atuin Has Forever Changed The Way I Use Command History

  Рет қаралды 14,725

DevOps Toolbox

DevOps Toolbox

Күн бұрын

Пікірлер: 66
@devopstoolbox
@devopstoolbox Ай бұрын
Join 2000+ subscribers getting one dev/sec/ops tip every Friday: signup.omerxx.com
@elliehuxtable
@elliehuxtable 2 ай бұрын
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 2 ай бұрын
@@elliehuxtable amazing work! Waiting to see what comes out :)
@RazoBeckett.
@RazoBeckett. 2 ай бұрын
nice tool bit overkill for me
@jhonyortiz5
@jhonyortiz5 2 ай бұрын
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 2 ай бұрын
Don't know how I missed that 😮 Maybe I'd have to create a followup :)
@zehph
@zehph 2 ай бұрын
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 2 ай бұрын
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 2 ай бұрын
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 2 ай бұрын
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 2 ай бұрын
@@zehph 😅
@typecraft_dev
@typecraft_dev 2 ай бұрын
this looks amazing! love the TUI
@devopstoolbox
@devopstoolbox 2 ай бұрын
It is! But beyond the user interface, the persistency with a local DB is so sweet
@threee1298
@threee1298 2 ай бұрын
the two of you are like 90% of the reason I’m still using nvim
@typecraft_dev
@typecraft_dev 2 ай бұрын
@@threee1298 hell yeah brother
@tommisaltiola
@tommisaltiola Ай бұрын
nice. Knew there must be something like this but did not take time to search for it.
@Dtanphat9388
@Dtanphat9388 2 ай бұрын
i used C-r in fzf to search history
@devopstoolbox
@devopstoolbox 2 ай бұрын
@@Dtanphat9388 I used to do it as well, this is based on the same thing
@summerWTFE
@summerWTFE 2 ай бұрын
Holy shit, I would never trust a random server with that kind of info.
@devopstoolbox
@devopstoolbox 2 ай бұрын
@@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 2 ай бұрын
@@mintcar exactly :)
@AlaaSaidAhmad
@AlaaSaidAhmad 2 ай бұрын
What the fonts did you use and how did you configuration your terminal ❤ pls
@devopstoolbox
@devopstoolbox 2 ай бұрын
Hi! My font is usually jet brains mono. You have my full setup here: kzbin.info/www/bejne/r3TKmpiMqpZmjLMsi=54RXguXV7naPpyzt
@SB-qm5wg
@SB-qm5wg 2 ай бұрын
I like the filter option.
@maxietheboss
@maxietheboss 2 ай бұрын
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 2 ай бұрын
@@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 2 ай бұрын
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
@sumanth3036
@sumanth3036 2 ай бұрын
remotely useful tool that I did not wish for
@devopstoolbox
@devopstoolbox 2 ай бұрын
@@sumanth3036 I rely heavily on my history working with cloud APIs and Kubernetes controllers, the persistency here is key for me !
@aditya95sriram
@aditya95sriram 2 ай бұрын
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.
@hungvx-dev
@hungvx-dev 2 ай бұрын
Hi. What is the bluring transparent browser? kzbin.info/www/bejne/e56ThZd3m9mLd6Mm44s
@devopstoolbox
@devopstoolbox 2 ай бұрын
@@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 2 ай бұрын
@@devopstoolbox thank you. :D
@Flaviongas
@Flaviongas Ай бұрын
What do you use for showing the keys pressed on screen?
@devopstoolbox
@devopstoolbox Ай бұрын
KeyCastr?
@gabosnakegsk6849
@gabosnakegsk6849 22 күн бұрын
Hey, can you explain more about "friction"? Thanks
@devopstoolbox
@devopstoolbox 21 күн бұрын
Hi, in what sense?
@gabosnakegsk6849
@gabosnakegsk6849 10 күн бұрын
When you say "frictionless" do you mean that your workflow is fast?
@devopstoolbox
@devopstoolbox 10 күн бұрын
@@gabosnakegsk6849 definitely. Basically every additional “micro” action you need to perform to achieve something creates friction. Imagine you want a long command in your history that uploads an encrypted file to Amazon. Imagine you have to search through your command history, use your arrows, try to filter the list out, maybe even realize it’s not there, only to recall you have it stored on your rc file but not exactly the way you want it…. You get the point. Now consider a tool that does all of that for you. Fuzzy searching, complete persistency with a DB, your command is found + edited in minutes. Not only you made it, the next time you’ll have to go through the same process, in the first example, your brain will avoid the process as if it’s physical pain. Removing friction from workflows allows for flow of actions and therefore throughts.
@hesperauxyo
@hesperauxyo 2 ай бұрын
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 2 ай бұрын
@@elliehuxtable badass. 👍🏻👍🏻
@nickmills8476
@nickmills8476 2 ай бұрын
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.
@RuanSilva-kk1gq
@RuanSilva-kk1gq 2 ай бұрын
seccond
@souzaxx
@souzaxx 2 ай бұрын
let’s gooo
@SunsetNova
@SunsetNova 2 ай бұрын
Recently installed atuin and it’s awesome. So so useful
@YEM_
@YEM_ 2 ай бұрын
Tell me, do you like it better than fzf?
@Danielo515
@Danielo515 2 ай бұрын
This has been in my todo list for one year. Happy to find a hands on to motivate me
@narenderpamu
@narenderpamu 2 ай бұрын
what is the terminal used here with blur?
@devopstoolbox
@devopstoolbox 2 ай бұрын
@@narenderpamu you mean wezterm?
@user-pc4i8ege55
@user-pc4i8ege55 2 ай бұрын
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 2 ай бұрын
@@ViRMiN8r that's great. Thanks!
@devopstoolbox
@devopstoolbox 2 ай бұрын
@@user-pc4i8ege55 you can change the style to something leaner. I also prefer minimal setups and only the information that’s relevant
@zestynotions
@zestynotions 2 ай бұрын
@@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 2 ай бұрын
@@zestynotions ah yes of course
@1234minecraft5678
@1234minecraft5678 2 ай бұрын
Have not seen the vid yet, but i think fzf has a great way to navigate through the history
@devopstoolbox
@devopstoolbox 2 ай бұрын
@@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 2 ай бұрын
@@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 Ай бұрын
@@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 Ай бұрын
*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.
Five Terminal Applications I CAN'T Live Without
11:28
DevOps Toolbox
Рет қаралды 23 М.
Is Zellij the PERFECT Multiplexer? // Tmux Getting Dethroned!
13:06
DevOps Toolbox
Рет қаралды 38 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 24 МЛН
The joker favorite#joker  #shorts
00:15
Untitled Joker
Рет қаралды 30 МЛН
Is Nix Your New Terminal SUPERPOWER?
15:21
DevOps Toolbox
Рет қаралды 24 М.
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 1 МЛН
12 GREAT command line programs YOU recommended!
16:25
The Linux Experiment
Рет қаралды 268 М.
7 Essential Command Line Text Tools
14:01
DevOps Toolbox
Рет қаралды 14 М.
My Neovim & Tmux Terminal Dev Workflow As A Principal Engineer
9:22
DevOps Toolbox
Рет қаралды 48 М.
This may be my favorite CLI tool ever
8:15
typecraft
Рет қаралды 80 М.
7 Amazing CLI Tools You Need To Try
18:10
Josean Martinez
Рет қаралды 346 М.
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 1,1 МЛН
7 Essential Command Line Tools (2022)
9:12
Tech Craft
Рет қаралды 214 М.
Hidden Tmux POWER: The Missing 50%
8:52
DevOps Toolbox
Рет қаралды 24 М.
Which One Is The Best - From Small To Giant #katebrush #shorts
00:17