oliverdavies.uk/content/node.6eeb79ee-eae2-41ea-ab7e-56f216daf636.yml

76 lines
2.9 KiB
YAML

uuid:
- value: 6eeb79ee-eae2-41ea-ab7e-56f216daf636
langcode:
- value: en
type:
- target_id: daily_email
target_type: node_type
target_uuid: 8bde1f2f-eef9-4f2d-ae9c-96921f8193d7
revision_timestamp:
- value: '2025-05-11T09:00:10+00:00'
revision_uid:
- target_type: user
target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849
revision_log: { }
status:
- value: true
uid:
- target_type: user
target_uuid: b8966985-d4b2-42a7-a319-2e94ccfbb849
title:
- value: 'Aliases and abbreviations'
created:
- value: '2024-06-22T00:00:00+00:00'
changed:
- value: '2025-05-11T09:00:10+00:00'
promote:
- value: false
sticky:
- value: false
default_langcode:
- value: true
revision_translation_affected:
- value: true
path:
- alias: /daily/2024/06/22/aliases-and-abbreviations
langcode: en
body:
- value: |
<p>Yesterday, I said <a href="/daily/2024/06/21/dont-use-aliases">not to use custom shell aliases and functions</a> during presentations and group programming sessions to avoid confusion.</p>
<p>I use aliases, but they expand after I type them, the same as as snippet in an IDE or text editor.</p>
<p>Me and everyone else can see the underlying command, and that's also what's saved in my shell history.</p>
<p>I still have the benefit of not having to type the whole command without obscuring it.</p>
<p>I used to have custom code in my zsh configuration, but recently <a href="https://github.com/opdavies/dotfiles.nix/commit/0df5f17dae4328546b5d08eef141656a5de2b522">switched to zsh-abbr</a>.</p>
<p>The first impressions are positive and I no longer need to maintain my custom code.</p>
<p>I use aliases for commands I don't want to expand, but I've moved everything else has moved to abbreviations.</p>
<p>If you use zsh, I recommend trying it.</p>
format: full_html
processed: |
<p>Yesterday, I said <a href="http://default/daily/2024/06/21/dont-use-aliases">not to use custom shell aliases and functions</a> during presentations and group programming sessions to avoid confusion.</p>
<p>I use aliases, but they expand after I type them, the same as as snippet in an IDE or text editor.</p>
<p>Me and everyone else can see the underlying command, and that's also what's saved in my shell history.</p>
<p>I still have the benefit of not having to type the whole command without obscuring it.</p>
<p>I used to have custom code in my zsh configuration, but recently <a href="https://github.com/opdavies/dotfiles.nix/commit/0df5f17dae4328546b5d08eef141656a5de2b522">switched to zsh-abbr</a>.</p>
<p>The first impressions are positive and I no longer need to maintain my custom code.</p>
<p>I use aliases for commands I don't want to expand, but I've moved everything else has moved to abbreviations.</p>
<p>If you use zsh, I recommend trying it.</p>
summary: null
field_daily_email_cta: { }