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

c4lliope
# ~/src/livebook/.iex.exs System.cmd("xdg-open", [ LivebookWeb.Endpoint.access_url() ] ) Because Livebook requires a unique passcode on ...
New

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
JesseHerrick
Hey, I’m Jesse and I’m the main contributor behind Dexter, a full-featured, lightning-fast Elixir LSP optimized for large codebases. It s...
New
mudasobwa
I am happy to introduce the very α version of the new programming language compiled to BEAM. Welcome Cure. It has literally three kille...
New
marciok
Hi there! We created Gust: A task orchestrator inspired by Airflow. For those who have never heard about Aiflow, it’s a Python-based wor...
New
mhanberg
Hi everyone! The first release candidate for the Expert language server project is now available! We’ve published a press release detai...
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

We're in Beta

About us Mission Statement

Options

Thread Display Mode




Thread Preview

Skip Thread Previews