added browser functions
This commit is contained in:
		
							parent
							
								
									eb47675940
								
							
						
					
					
						commit
						3e08f0ee45
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		
							
								
								
									
										5
									
								
								browser.zsh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										5
									
								
								browser.zsh
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
					@ -0,0 +1,5 @@
 | 
				
			||||||
 | 
					function duckduck() { x-www-browser "https://duckduckgo.com/?q=`escape "$@"`"; }
 | 
				
			||||||
 | 
					function escape() { perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$@"; }
 | 
				
			||||||
 | 
					function google() { x-www-browser "https://www.google.de/search?q=`escape "$@"`"; }
 | 
				
			||||||
 | 
					function xmlformat () { xmllint --format "$1" | unexpand -t 2 --first-only; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue