13 lines
		
	
	
		
			319 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			13 lines
		
	
	
		
			319 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/sh
 | |
| 
 | |
| shift
 | |
| page="$1"
 | |
| if [ -z "$page" ]; then
 | |
| 	page="$(
 | |
| 		apropos -s 1,8 . | \
 | |
| 		(~/.local/bin/menu/vertical.sh -p "man" || exec ~/.local/bin/menu/run.sh) | \
 | |
| 		sed ' s/\s\+\-.*//;s/ //g' 
 | |
| 	)"
 | |
| fi
 | |
| exec alacritty msg create-window --class="term_float" --working-directory="$HOME" --command "man '$page' || read -n1"
 |