Snippets for Bash Command Line?
Asked Answered
S

4

10

I use vim and snipmate a lot for my python programming. It would be ideal if I could have a snippet system for the bash command line. Right now I use the gnome terminal in ubuntu...

For instance, if I type:

for<TAB>

I get:

for i in {1..50}; do SOMETHING; done

My google foo fails me, so once again I'm turning to SO. Any ideas?

Shorts answered 8/2, 2012 at 2:10 Comment(2)
I'm not aware of some sort of "plugin" for this, but you could hack the completion scripts if you really wanted to.Infundibulum
pet - linoxide.com/linux-how-to/…Novel
P
5

If you're looking for a tool that let you expand macros, you can use autokey.

Pantelleria answered 8/2, 2012 at 8:9 Comment(0)
M
7

There are several implementations:

Boom

Bang

Sheet

Maurilia answered 16/5, 2013 at 19:14 Comment(0)
P
5

If you're looking for a tool that let you expand macros, you can use autokey.

Pantelleria answered 8/2, 2012 at 8:9 Comment(0)
J
1

There is Komandi, a multiplatform command snippets manager.

Jun answered 6/2, 2023 at 18:2 Comment(0)
C
0

You could also look into marker for both bash and zsh which features

  • search
  • placeholders
  • easy saving

Can be found at https://github.com/pindexis/marker

Conduce answered 20/3, 2022 at 13:22 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.