3

I need to add alias for certain commands, but can't figure out how to do this with post-start hooks.

For example, I want alias ll='ls -lah'.

Thanks.

JanneS
  • 63
  • 6

1 Answers1

3

One could edit ~/.bashrc file in post-start hook.

Like so:

hooks:
  post-start:
  - exec: sudo echo alias ll=\"ls -lhA\" >> ~/.bashrc
rfay
  • 9,963
  • 1
  • 47
  • 89
JanneS
  • 63
  • 6