AstonJ

AstonJ

..or as and when you can think of one :icon_cool:

This thread my also be of interest: What took you way too long to figure out? :003:

Showing Posts 1 to 10

AstonJ

AstonJ OP

I accidentally pasted my banking password into Terminal, so wanted to delete it to be on the safe side!

# close the app, then: 
rm ~/.zsh_history
rm -rf ~/.zsh_sessions
jswanner

jswanner

Why not edit the file to remove that line?

I use my shell history constantly, so I’m loathed to blow it away

AstonJ

AstonJ OP

That’s actually a good idea! :see_no_evil_monkey:

(I wasn’t too bothered on this machine though as I’ve just done a clean install, so there was very little history)

adamu

adamu

(edit: actually the top tips are all things like “new elixir version released (in 2017)!”…)

mudasobwa

mudasobwa

Creator of Cure
export ERL_AFLAGS='-kernel shell_history enabled  -kernel shell_history_path \".erl.history\"'

The above makes iex sessions to store their history on a per-project basis in project directories. ,gitignore should be also updated to include /.erl.history/.

25
Post #5
hauleth

hauleth

I have already said it few times in different places, but do yourself a favour, and if you are using Git, then have globally (in ~/.config/git/attributes) or per project (in .gitattributes):

mix.lock merge=binary

This will make conflict resolution of mix.lock much easier.


Explanation

This will tell Git to treat Mix lock file as a binary file when doing merges/rebases. This mean, that if there is a conflict, there will be stop (so you need to resolve such conflict), but it will leave file as is (with no conflict markers). This makes my life much easier, as you can then just do mix deps.update --all (as it is most of the time source of such conflicts) and then just git add mix.lock && git rebase --continue.

14
Post #6
phcurado

phcurado

Talking about git, I like to configure mine based article: How Core Git Developers Configure Git | Butler's Log. It contains some good info and recommendations you can use to improve the git defaults in your dev env.

Samjowen

Samjowen

Thanks for sharing, that was a good read.

arcanemachine

arcanemachine

This thread is similar in spirit to a thread I made a while back, so I’ll share it here: What took you way too long to figure out?

I was going to put something in there the other day, but never got around to it… and now I forget what it was :frowning:. I remember enough to know it would have fit perfectly here…

Also just wanted to bump the thread. :slight_smile:

AstonJ

AstonJ OP

Added a link to it in the first post :023:

This thread may also be of interest: What took you way too long to figure out? :003:


Kinda off-topic tip… but keep a note book handy/by your bed. Writing things down that come in to your mind just before going to sleep can actually help you sleep - as you’re not worrying about having to remember them! :icon_biggrin:

Where Next? Top

Trending in Guides/Tuts Top

krasenyp
You probably already know that <span>{nil}</span> in a HEEX template produces <span> </span> when rendered. I fin...
New

Other Trending Topics Top

garrison
Hobbes is a low-level distributed database for the Elixir programming language. Hobbes provides a simple, safe, and scalable storage lay...
New
mcass19
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Damirados
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve. They are GUI (Emerge) and State management (S...
New
netoum
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
wintermeyer
There are three potential reasons for members of this forum to have a look at https://vutuv.de You are tired or annoyed of LinkedIn. Yo...
New
webofbits
Aludel - LLM Evaluation Workbench Aludel is an embeddable Phoenix LiveView dashboard for evaluating and comparing LLM prompts across mult...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews