Add first working ion config
This commit is contained in:
		
							parent
							
								
									cb767f4766
								
							
						
					
					
						commit
						99ccc220aa
					
				
					 4 changed files with 49 additions and 0 deletions
				
			
		
							
								
								
									
										7
									
								
								.config/ion/aliases.ion
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										7
									
								
								.config/ion/aliases.ion
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,7 @@ | |||
| alias myip="curl http://ip.ie.mk/get" | ||||
| alias ls="ls --color" | ||||
| alias grep="rg" | ||||
| alias virsh="virsh --connect qemu:///system" | ||||
| alias cal="cal -m" | ||||
| alias sudo="sudo -E" | ||||
| alias cat="bat" | ||||
							
								
								
									
										0
									
								
								.config/ion/initrc
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								.config/ion/initrc
									
										
									
									
									
										Normal file
									
								
							
							
								
								
									
										36
									
								
								.config/ion/rc.ion
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										36
									
								
								.config/ion/rc.ion
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,36 @@ | |||
| let EDITOR=vim | ||||
| let GIT_EDITOR=$EDITOR | ||||
| let SYSTEMD_EDITOR=$EDITOR | ||||
| let MANWIDTH=80 | ||||
| 
 | ||||
| source $IONRCDIR/aliases.ion | ||||
| 
 | ||||
| fn genpasswd | ||||
|     strings /dev/urandom | tr -cd '12345!@#$%qwertQWERTasdfgASDFGzxcvbZXCVB' | head -c 32 && echo | ||||
| end | ||||
| 
 | ||||
| fn parse_branch scm | ||||
|     $scm branch ^> /dev/null | awk '/^*/{print "("$2")"}' | ||||
| end | ||||
| 
 | ||||
| fn PROMPT | ||||
|     echo "${c::yellow}$(date '+%A %F %R') ${c::reset}${c::cyan}$(whoami)\@$(hostname): ${c::reset}$PWD ${c::green}$(parse_branch git)${c::magenta}$(parse_branch fossil)" | ||||
|     echo -n "${c::reset}-$ " | ||||
| end | ||||
| 
 | ||||
| let PYTHONDONTWRITEBYTECODE=1 | ||||
| let PYTHONUSERBASE=~/.env/python | ||||
| let PATH=$PYTHONUSERBASE/bin:$HOME/bin:$PATH:$HOME/.cargo/bin/ | ||||
| 
 | ||||
| let HISTCONTROL=ignoredups:erasedups  # Avoid duplicates | ||||
| let HISTSIZE=100000000                # big big history | ||||
| let HISTFILESIZE=100000000            # big big history | ||||
| 
 | ||||
| let LIBVIRT_DEFAULT_URI='qemu:///system' | ||||
| 
 | ||||
| let SSH_AUTH_SOCK="/run/user/$UID/gnupg/S.gpg-agent.ssh" | ||||
| let GPG_TTY=$(tty) | ||||
| gpg-connect-agent updatestartuptty /bye >/dev/null | ||||
| 
 | ||||
| # Rust src path used for library tagging | ||||
| let RUST_SRC_PATH=$(rustc --print sysroot)/lib/rustlib/src/rust/src/ | ||||
							
								
								
									
										6
									
								
								.ionrc
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								.ionrc
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,6 @@ | |||
| # | ||||
| # ~/.ionrc | ||||
| # | ||||
| 
 | ||||
| export IONRCDIR=$HOME/.config/ion | ||||
| source $IONRCDIR/rc.ion | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue