Skip to content

Instantly share code, notes, and snippets.

@kernelvoid17
Last active September 29, 2025 09:35
Show Gist options
  • Select an option

  • Save kernelvoid17/2d9f0b40a22229cbc2c0bdc235ff5c41 to your computer and use it in GitHub Desktop.

Select an option

Save kernelvoid17/2d9f0b40a22229cbc2c0bdc235ff5c41 to your computer and use it in GitHub Desktop.
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# Shell Prompt
# PS1='[\u@\h \W]\$ '
PS1='\W \$ '
# Shortcuts
alias n='nvim'
alias ga='git add'
alias gc='git commit'
alias gp='git push'
alias gs='git status'
alias gl='git log'
alias t='tmux'
alias ta='tmux attach -t'
alias tk='tmux kill-session'
alias tks='tmux kill-server'
alias tl='tmux ls'
alias zl='zellij list-sessions'
alias za='zellij attach'
alias zk='zellij kill-session'
alias zka='zellij kill-all-sessions'
alias grep='rga'
alias copy='fish_clipboard_copy'
alias cd="z"
edit() {
program="$1"
case "$program" in
bash)
cd "$HOME" || return
nvim .bashrc
;;
tmux)
cd "$HOME" || return
nvim .tmux.conf
;;
wezterm)
cd "$HOME/.config/wezterm" || return
nvim wezterm.lua
;;
nvim)
cd "$HOME/.config/nvim" || return
nvim .
;;
st)
cd "$HOME/.config/st/" || return
nvim config.h
;;
*)
echo "Usage: edit {bash|tmux|wezterm|nvim|st}"
return 2
;;
esac
}
eval "$(zoxide init bash)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment