source bash_func - Printable Version +- nixers (https://nixers.net) +-- Forum: Development & Graphics (https://nixers.net/Forum-Development-Graphics) +--- Forum: Programming On Unix (https://nixers.net/Forum-Programming-On-Unix) +--- Thread: source bash_func (/Thread-source-bash-func) |
source bash_func - budRich - 16-11-2017 Less is more, here are some very simple functions that I always source in to my .bashrc Code: # prints newest file in dir Code: # adds an alias and re-sources .bashrc I also use some of the nuggets from this thread on another forum: https://linuxbbq.org/bbs/viewtopic.php?f=4&t=2076 RE: source bash_func - venam - 16-11-2017 One of my fav: Code: markdown () { Code: alias vtn='echo "X[mX(BX)0OX[?5lX7X[rX8" | tr "XO" "\033\017"' And the classic extract: Code: extract () { RE: source bash_func - pkal - 16-11-2017 Here's a nifty music playing function from the arch wiki (one doesn't have to use "worstaudio", but I usually do just for the sake of speed - my speakers are bad enough anyway): Code: function mm() { And colourized man pages, from some default debian bashrc: Code: man() { (16-11-2017, 08:04 AM)venam Wrote: Or when you mess up your tty What's the difference between this and just regular "reset"? RE: source bash_func - venam - 17-11-2017 (16-11-2017, 07:15 PM)zge Wrote: What's the difference between this and just regular "reset"? Code: stty sane # reset line discipline |