chore: Restructured fish config
This commit is contained in:
		
							parent
							
								
									cf8fc32ecc
								
							
						
					
					
						commit
						68def88fe9
					
				
					 5 changed files with 36 additions and 46 deletions
				
			
		|  | @ -2,59 +2,17 @@ if status is-interactive | ||||||
|     # Commands to run in interactive sessions can go here |     # Commands to run in interactive sessions can go here | ||||||
| end | end | ||||||
| 
 | 
 | ||||||
| bind \cH backward-kill-path-component |  | ||||||
| bind "[3;5~" kill-word |  | ||||||
| 
 |  | ||||||
| function config |  | ||||||
| /usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME $argv |  | ||||||
| end |  | ||||||
| 
 |  | ||||||
| #Vim mode |  | ||||||
| #fish_vi_key_bindings |  | ||||||
| fish_default_key_bindings | fish_default_key_bindings | ||||||
| function vim |  | ||||||
| 	nvim $argv |  | ||||||
| end |  | ||||||
| 
 |  | ||||||
| function launch-term |  | ||||||
| 	docker exec -it core xterm -bg black -fg white -fa 'DejaVu Sans Mono' -fs 16 -e vcmd -c /tmp/pycore.1/$argv -- sh -c "cd /rust-cc && /bin/bash" |  | ||||||
| end |  | ||||||
| 
 |  | ||||||
| function core |  | ||||||
|     xhost +local:root |  | ||||||
|     sudo docker exec -it core core-gui |  | ||||||
| end |  | ||||||
| 
 |  | ||||||
| function i |  | ||||||
| 	sudo pacman -S $argv |  | ||||||
| end |  | ||||||
| 
 |  | ||||||
| function s |  | ||||||
| 	sudo pacman -Ss $argv |  | ||||||
| end |  | ||||||
| 
 |  | ||||||
| function u |  | ||||||
|     sudo pacman -Sy && sudo powerpill -Su  |  | ||||||
| end |  | ||||||
| 
 |  | ||||||
| function r |  | ||||||
|     sudo pacman -Rns $argv |  | ||||||
| end |  | ||||||
| 
 |  | ||||||
| function mónade |  | ||||||
| 	ghci $argv |  | ||||||
| end  |  | ||||||
| 
 | 
 | ||||||
| set -gx EDITOR vim | set -gx EDITOR vim | ||||||
| set -gx TERM 'xterm-256color' | set -gx TERM 'xterm-256color' | ||||||
| 
 | 
 | ||||||
| fish_add_path $HOME/.nix-profile/bin |  | ||||||
| fish_add_path /var/lib/snapd/snap/bin |  | ||||||
| fish_add_path $HOME/.local/share/nvim/mason/bin | fish_add_path $HOME/.local/share/nvim/mason/bin | ||||||
| #set -q GHCUP_INSTALL_BASE_PREFIX[1]; or set GHCUP_INSTALL_BASE_PREFIX $HOME ; set -gx PATH $HOME/.cabal/bin /home/afonso/.ghcup/bin $PATH # ghcup-env |  | ||||||
| fish_add_path /home/afonso/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin | fish_add_path /home/afonso/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/bin | ||||||
| fish_add_path $HOME/.local/bin  | fish_add_path $HOME/.local/bin  | ||||||
| fish_add_path $HOME/.cargo/bin  | fish_add_path $HOME/.cargo/bin  | ||||||
| 
 | 
 | ||||||
| 
 | source ~/.config/fish/myfunctions/code.fish | ||||||
| set -q GHCUP_INSTALL_BASE_PREFIX[1]; or set GHCUP_INSTALL_BASE_PREFIX $HOME ; set -gx PATH $HOME/.cabal/bin /home/afonso/.ghcup/bin $PATH # ghcup-env | source ~/.config/fish/myfunctions/dotfiles.fish | ||||||
|  | source ~/.config/fish/myfunctions/pacman.fish | ||||||
|  | source ~/.config/fish/myfunctions/qol.fish | ||||||
|  |  | ||||||
							
								
								
									
										8
									
								
								.config/fish/myfunctions/code.fish
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								.config/fish/myfunctions/code.fish
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,8 @@ | ||||||
|  | function vim | ||||||
|  | 	nvim $argv | ||||||
|  | end | ||||||
|  | 
 | ||||||
|  | function ta | ||||||
|  |     tmux attach | ||||||
|  | end | ||||||
|  | 
 | ||||||
							
								
								
									
										4
									
								
								.config/fish/myfunctions/dotfiles.fish
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								.config/fish/myfunctions/dotfiles.fish
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,4 @@ | ||||||
|  | function config | ||||||
|  | /usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME $argv | ||||||
|  | end | ||||||
|  | 
 | ||||||
							
								
								
									
										16
									
								
								.config/fish/myfunctions/pacman.fish
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								.config/fish/myfunctions/pacman.fish
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,16 @@ | ||||||
|  | function i | ||||||
|  | 	sudo pacman -S $argv | ||||||
|  | end | ||||||
|  | 
 | ||||||
|  | function s | ||||||
|  | 	sudo pacman -Ss $argv | ||||||
|  | end | ||||||
|  | 
 | ||||||
|  | function u | ||||||
|  |     sudo pacman -Syu | ||||||
|  | end | ||||||
|  | 
 | ||||||
|  | function r | ||||||
|  |     sudo pacman -Rns $argv | ||||||
|  | end | ||||||
|  | 
 | ||||||
							
								
								
									
										4
									
								
								.config/fish/myfunctions/qol.fish
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										4
									
								
								.config/fish/myfunctions/qol.fish
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,4 @@ | ||||||
|  | bind \cH backward-kill-path-component | ||||||
|  | bind "[3;5~" kill-word | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue