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

Other Trending Topics Top

GenericJam
Edit: 2026 May 15 - This post is archived. Mob is alive!! Main docs: mob v0.7.11 — Documentation A bit of explanation for the slightly c...
New
budgie
A little off-topic, but I feel like people here have a good head on their shoulders. I used to be quite good at making software. Was luc...
New
KristerV
Hey. Is there anyone here who creates agents in their apps? Not talking about using agents, but creating them. I’m finding it pretty diff...
New
mudasobwa
I fully migrated to my own harness from Anthropic/Gemini and I think it’s time to share it. Welcome DSH, the DeepSeek Harness, fully writ...
New
jimsynz
Beam Bots (or just BB for short) is a framework for building fault-tolerant robotics applications in Elixir using familiar OTP patterns. ...
New
juhalehtonen
There has been a thread to discuss the Stack Overflow Developer Survey on this forum every year since 2018, so here’s yet another one for...
New

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews