Update script to create script
							parent
							
								
									a8c4805542
								
							
						
					
					
						commit
						d1635ffd31
					
				
							
								
								
									
										10
									
								
								.bin/script
								
								
								
								
							
							
						
						
									
										10
									
								
								.bin/script
								
								
								
								
							| 
						 | 
					@ -13,5 +13,13 @@ path="$HOME/.bin/$1"
 | 
				
			||||||
set -o noclobber
 | 
					set -o noclobber
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Create script
 | 
					# Create script
 | 
				
			||||||
echo "#!/usr/bin/env bash" > "$path"
 | 
					cat > "$path" << EOF
 | 
				
			||||||
 | 
					#!/usr/bin/env bash
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					EOF
 | 
				
			||||||
 | 
					
 | 
				
			||||||
chmod +x "$path"
 | 
					chmod +x "$path"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Open script in editor on line 3
 | 
				
			||||||
 | 
					"$EDITOR" +3 "$path"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue