source bash_func - Programming On Unix
                
		         
	        
        
	
	Users browsing this thread: 1 Guest(s)
| 
 | |||
| 
					Less is more, here are some very simple functions that I always source in to my .bashrc Code: # prints newest file in dirCode: # adds an alias and re-sources .bashrcI also use some of the nuggets from this thread on another forum: https://linuxbbq.org/bbs/viewtopic.php?f=4&t=2076 | |||
| 
 | |||
| 
					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 () { | |||
| 
 | |||
| 
					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"? | |||
| 
 | |||

 
                                			
