Posts about dynamic
Execute dynamic code in Elixir

Sometimes you might need to execute code dynamically based - for instance - on the name of a module, akin to code reflection on other languages.

In Elixir one way this can be achieved is by using Erlang's :code module. As an example, say you want to...

FISH Shell - How to set tmux window/pane title based on current command and directory

Here's a neat trick: Setting the current tmux window/pane title to the current running command. In case there is no command running, show the current working directory. But trim it a little, so we don't end up with huge window titles :)

In your...