44 lines
		
	
	
		
			862 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			44 lines
		
	
	
		
			862 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/usr/bin/zsh
 | 
						|
# Make ZSH behave like vim
 | 
						|
bindkey -v
 | 
						|
 | 
						|
# Re-enable reverse-i-search
 | 
						|
# bindkey '^R' history-incremental-search-backward
 | 
						|
 | 
						|
# Aliases
 | 
						|
alias yay="yay --aur"
 | 
						|
alias ls="exa"
 | 
						|
alias ll="exa -albh"
 | 
						|
alias cat="bat"
 | 
						|
alias vim="nvim"
 | 
						|
alias find="fd"
 | 
						|
alias grep="rg"
 | 
						|
 | 
						|
# 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
 | 
						|
}
 | 
						|
 | 
						|
 | 
						|
# alias dotfile='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME '
 | 
						|
 | 
						|
 | 
						|
### Environment Variable Exports
 | 
						|
 | 
						|
# Rust
 | 
						|
export CARGO_HOME=~/.local/share/cargo
 | 
						|
export RUSTUP_HOME=~/.config/rustup
 | 
						|
 | 
						|
# Re-enable reverse-i-search
 | 
						|
bindkey '^R' history-incremental-search-backward
 | 
						|
 | 
						|
# Set Default Editor
 | 
						|
export EDITOR="/usr/bin/nvim"
 | 
						|
 | 
						|
# Make mpv XDG Compliant
 | 
						|
export MPV_HOME=~/.local/share/mpv
 |