zsh alias with default argument, but also overridable
--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Digital Sunset Looping
--
Chapters
00:00 Zsh Alias With Default Argument, But Also Overridable
00:38 Accepted Answer Score 30
00:49 Thank you
--
Full question
https://superuser.com/questions/466464/z...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#commandline #bash #zsh
#avk47
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Digital Sunset Looping
--
Chapters
00:00 Zsh Alias With Default Argument, But Also Overridable
00:38 Accepted Answer Score 30
00:49 Thank you
--
Full question
https://superuser.com/questions/466464/z...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#commandline #bash #zsh
#avk47
ACCEPTED ANSWER
Score 30
I would use a function:
function e() {
if [ "$1" != "" ]
then
subl $1
else
subl .
fi
}
adding it to .profile