29 lines
		
	
	
		
			732 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			732 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
| #!/usr/bin/zsh
 | |
| # Make ZSH behave like vim
 | |
| # :bindkey -v
 | |
| 
 | |
| # Aliases
 | |
| alias yay="yay --aur"
 | |
| alias paru="paru --aur"
 | |
| alias ls="eza"
 | |
| alias ll="eza -albh"
 | |
| # alias hx="helix"
 | |
| alias cat="bat"
 | |
| alias find="fd"
 | |
| alias grep="rg"
 | |
| alias open="xdg-open"
 | |
| alias zigup="zigup --path-link /home/paoda/.local/bin/zig --install-dir /home/paoda/.local/share/zigup/zig"
 | |
| alias objdump="objdump -M intel --disassembler-color=extended-color --visualize-jumps=extended-color"
 | |
| 
 | |
| # Functions
 | |
| dotfile() {
 | |
|     if [[ "$1" = "status" ]]; then
 | |
| 	git --git-dir="$HOME"/.dotfiles/ --work-tree="$HOME" status -uno;
 | |
|     else
 | |
| 	git --git-dir="$HOME"/.dotfiles/ --work-tree="$HOME" "$@";
 | |
|     fi
 | |
| }
 | |
| 
 | |
| # Re-enable reverse-i-search
 | |
| bindkey '^R' history-incremental-search-backward
 |