add script to set locale
This commit is contained in:
		
							
								
								
									
										13
									
								
								sh/locales.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								sh/locales.sh
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,13 @@
 | 
			
		||||
# Uncomment german locale
 | 
			
		||||
sed -i 's/^# *\(de_DE.UTF-8\)/\1/' /etc/locale.gen
 | 
			
		||||
 | 
			
		||||
# Generate locale
 | 
			
		||||
locale-gen
 | 
			
		||||
 | 
			
		||||
# Export env vars
 | 
			
		||||
echo "export LC_ALL=de_DE.UTF-8" >> ~/.bashrc
 | 
			
		||||
echo "export LANG=de_DE.UTF-8" >> ~/.bashrc
 | 
			
		||||
echo "export LANGUAGE=de_DE.UTF-8" >> ~/.bashrc
 | 
			
		||||
 | 
			
		||||
# Restart shell
 | 
			
		||||
bash
 | 
			
		||||
		Reference in New Issue
	
	Block a user