Quantcast
Channel: Bash alias that calls a script versus defining the script as a function - Ask Ubuntu
Browsing latest articles
Browse All 2 View Live

Answer by terdon for Bash alias that calls a script versus defining the...

If you define these in your ~/.bash_aliases file, which is an Ubuntu-specific thing and gets sourced by ~/.bashrc in a default Ubuntu install, then yes, there is an overhead since the file will be...

View Article



Bash alias that calls a script versus defining the script as a function

I have 150+ shortcuts defined in my .bash_aliases file. Some of them are simple commands, for example: # Opens file with default program o () { xdg-open "$@" & disown; } # Folder shortcuts alias...

View Article
Browsing latest articles
Browse All 2 View Live




Latest Images