Start at bottom
This commit is contained in:
		
							parent
							
								
									a5fa00ff05
								
							
						
					
					
						commit
						749625e612
					
				@ -8,6 +8,5 @@ source ~/.config/nushell/config/gclone.nu
 | 
				
			|||||||
source ~/.config/nushell/config/pass.nu
 | 
					source ~/.config/nushell/config/pass.nu
 | 
				
			||||||
source ~/.config/nushell/config/docker.nu
 | 
					source ~/.config/nushell/config/docker.nu
 | 
				
			||||||
source ~/.config/nushell/config/xrandr.nu
 | 
					source ~/.config/nushell/config/xrandr.nu
 | 
				
			||||||
 | 
					source ~/.config/nushell/config/tfetch.nu
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# Start tfetch
 | 
					 | 
				
			||||||
tfetch
 | 
					 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										12
									
								
								nushell/config/tfetch.nu
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								nushell/config/tfetch.nu
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					# nushell puts prompt at bottom of terminal on resize, so it's preferable to start on the bottom of the terminal
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# tfetch takes 19 lines, 21 with prompt
 | 
				
			||||||
 | 
					let height = (stty size | split row " " | get 0 | into int) - 21
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# skip lines so that the prompt starts at the bottom of the terminal
 | 
				
			||||||
 | 
					for i in 0..<$height {
 | 
				
			||||||
 | 
					    print -n "\n"
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Start tfetch
 | 
				
			||||||
 | 
					tfetch
 | 
				
			||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user