Added example files for bash functions and aliases
This commit is contained in:
		
							
								
								
									
										12
									
								
								playbooks/files/all/bash/bash_aliases.example
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								playbooks/files/all/bash/bash_aliases.example
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					#!/usr/bin/bash
 | 
				
			||||||
 | 
					# ssh aliases
 | 
				
			||||||
 | 
					alias ssh_send="scp -C"
 | 
				
			||||||
 | 
					# @NOTE consider adding aliases for scp source or destination hosts
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# flatpak aliases
 | 
				
			||||||
 | 
					alias clone="rsync -pogAXtlHrDx --stats --info=progress2"
 | 
				
			||||||
 | 
					alias flatshell="flatpak run --user --command=sh"
 | 
				
			||||||
 | 
					alias codium="flatpak run --user com.vscodium.codium"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# podman aliases
 | 
				
			||||||
 | 
					alias docker="podman"
 | 
				
			||||||
							
								
								
									
										13
									
								
								playbooks/files/all/bash/bash_functions.example
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								playbooks/files/all/bash/bash_functions.example
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					#!/usr/bin/bash
 | 
				
			||||||
 | 
					# podman bash function
 | 
				
			||||||
 | 
					conman () {
 | 
				
			||||||
 | 
					    if command -v podman &> /dev/null; then
 | 
				
			||||||
 | 
					        CONTAINER_MANAGER="podman"
 | 
				
			||||||
 | 
					    elif command -v docker &> /dev/null; then
 | 
				
			||||||
 | 
					        CONTAINER_MANAGER="docker"
 | 
				
			||||||
 | 
					    else
 | 
				
			||||||
 | 
					        exit 1
 | 
				
			||||||
 | 
					    fi
 | 
				
			||||||
 | 
					    
 | 
				
			||||||
 | 
					    $CONTAINER_MANAGER
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user