added custom command to query cheat.sh
This commit is contained in:
		
							parent
							
								
									9b078afb68
								
							
						
					
					
						commit
						c1c0a2e6c9
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -871,6 +871,11 @@ def slideshow [delay: int = 10] {
 | 
			
		|||
    feh --full-screen --randomize --auto-zoom --recursive --slideshow-delay $delay
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
#look up something on cheat.sh
 | 
			
		||||
def cheat [query: string] {
 | 
			
		||||
    curl $"cheat.sh/($query)"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# parses git log into a nushell table.
 | 
			
		||||
def --wrapped git-log [...rest] {
 | 
			
		||||
    git log --pretty=%h»¦«%H»¦«%s»¦«%aN»¦«%aE»¦«%aD ...$rest | lines | split column "»¦«" commit full-commit subject name email date | upsert date {|d| $d.date | into datetime}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue