GiselleSerate / myaliases

Useful shell aliases and functions.
6 stars 1 forks source link

alt alias strategy #46

Closed GiselleSerate closed 6 years ago

GiselleSerate commented 6 years ago

so here's a strategy that might work: pass the command to alias and then run alias nickname to get the line that alias assigned, and then write that straight to file.

GiselleSerate commented 6 years ago

Note: alias ignores all quotes, so we can just delete all of those when getting what alias saved the line as.

Further, an input containing $ behaves weirdly and breaks the nickname early. (I don't know if we should care terribly, because if you try putting special characters like that, you just won't be able to type the alias as you assigned it. You can't even call the alias with special characters normally.)

GiselleSerate commented 6 years ago

Finished, and remaining tasks split to other issues.