I have no idea what I'm doing
This commit is contained in:
		
							parent
							
								
									f8f61c62e9
								
							
						
					
					
						commit
						954ad10b9f
					
				
							
								
								
									
										64
									
								
								dotfiles-old/.bashrc
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							
							
						
						
									
										64
									
								
								dotfiles-old/.bashrc
									
									
									
									
									
										
										
										Executable file → Normal file
									
								
							@ -1,63 +1 @@
 | 
			
		||||
#!/bin/bash
 | 
			
		||||
 | 
			
		||||
complete -c man which
 | 
			
		||||
PS1="; "
 | 
			
		||||
PS2=">; "
 | 
			
		||||
PS3=">>; "
 | 
			
		||||
export PATH=$PATH":$HOME/bin"
 | 
			
		||||
 | 
			
		||||
# aliases for using my Commodore monitor with my computer
 | 
			
		||||
alias 1702off="xrandr --output HDMI1 --off"
 | 
			
		||||
alias 1702on="xrandr --output HDMI1 --auto --mode 720x480 --right-of LVDS1"
 | 
			
		||||
 | 
			
		||||
# requires bat
 | 
			
		||||
alias cat="bat --theme=ansi-light"
 | 
			
		||||
 | 
			
		||||
alias cls="clear"
 | 
			
		||||
 | 
			
		||||
# useful aliases
 | 
			
		||||
alias iftoggle="sudo ip link set"
 | 
			
		||||
alias ifswitch="iftoggle $1 down && iftoggle $1 up"
 | 
			
		||||
 | 
			
		||||
alias imount="idevicepair pair && sudo ifuse -o allow_other /mnt/iphone/"
 | 
			
		||||
 | 
			
		||||
# windows
 | 
			
		||||
alias ipconfig="ifconfig"
 | 
			
		||||
alias tracert="tracepath"
 | 
			
		||||
 | 
			
		||||
# i always forget this one but it's useful
 | 
			
		||||
alias p="ping 1.1.1.1"
 | 
			
		||||
 | 
			
		||||
# copy web-browser path to file to clipboard
 | 
			
		||||
path() {
 | 
			
		||||
	echo 'file://'$(realpath $1) | xclip
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
alias sudo="doas"
 | 
			
		||||
 | 
			
		||||
# my media hard drive
 | 
			
		||||
alias partone="sudo mount -L 'PARTONE' /mnt/partone"
 | 
			
		||||
# sd card with music on it
 | 
			
		||||
alias audio="sudo mount -L 'AUDIO' /mnt/audio"
 | 
			
		||||
# other volumes
 | 
			
		||||
mnt() {
 | 
			
		||||
	sudo mount /dev/$1 /mnt/$1 && cd /mnt/$1
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# aliases for using a VGA monitor, i use these at home and at school
 | 
			
		||||
deskoff() {
 | 
			
		||||
	xsetwacom set "Wacom Intuos2 6x8 Pen stylus" MapToOutput LVDS1
 | 
			
		||||
	xrandr --output VGA1 --off
 | 
			
		||||
}
 | 
			
		||||
deskon() {
 | 
			
		||||
	xrandr --output VGA1 --auto --left-of LVDS1
 | 
			
		||||
	xsetwacom set "Wacom Intuos2 6x8 Pen stylus" MapToOutput VGA1
 | 
			
		||||
}
 | 
			
		||||
alias bedoff="xrandr --output VGA1 --off"
 | 
			
		||||
alias bedon="xrandr --output VGA1 --auto --right-of LVDS1"
 | 
			
		||||
 | 
			
		||||
# project i'm working on
 | 
			
		||||
alias ytfeed="$HOME/github/ytfeed.py/cli.py"
 | 
			
		||||
 | 
			
		||||
# for ruby working
 | 
			
		||||
eval "$(rbenv init -)"
 | 
			
		||||
source .profile
 | 
			
		||||
							
								
								
									
										12
									
								
								dotfiles-old/.profile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								dotfiles-old/.profile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,12 @@
 | 
			
		||||
#!/bin/sh
 | 
			
		||||
 | 
			
		||||
complete -c man which
 | 
			
		||||
PS1="; "
 | 
			
		||||
PS2=">; "
 | 
			
		||||
PS3=">>; "
 | 
			
		||||
export PATH=$PATH":$HOME/bin"
 | 
			
		||||
 | 
			
		||||
source .aliases
 | 
			
		||||
 | 
			
		||||
# for ruby working
 | 
			
		||||
eval "$(rbenv init -)"
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user