Add list of programs that should fork by default
This commit is contained in:
		
							parent
							
								
									c3d8306825
								
							
						
					
					
						commit
						7eadc39b28
					
				
					 2 changed files with 12 additions and 1 deletions
				
			
		
							
								
								
									
										10
									
								
								aliases/fork_by_default
									
										
									
									
									
										Executable file
									
								
							
							
						
						
									
										10
									
								
								aliases/fork_by_default
									
										
									
									
									
										Executable file
									
								
							|  | @ -0,0 +1,10 @@ | |||
| #!/bin/zsh | ||||
| 
 | ||||
| local forkprogs=( | ||||
|     geeqie | ||||
|     feh | ||||
| ) | ||||
| 
 | ||||
| for i in $forkprogs; do | ||||
|     alias $i="fork $i" | ||||
| done | ||||
|  | @ -31,8 +31,9 @@ alias v="xdg-open" | |||
| 
 | ||||
| alias vmemcache="vmtouch -l -m 12G -v" | ||||
| 
 | ||||
| 
 | ||||
| fork() { | ||||
| 	( $* &>/dev/null & ) | ||||
| 	"$@" &>/dev/null &| | ||||
| } | ||||
| 
 | ||||
| alias en="dict.cc.py de en" | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 crater2150
						crater2150