4 Commits

Author SHA1 Message Date
wesley 6eec2cd028 Refactored dot-zshrc config (#46)
Added in command checking to the dot-zshrc file to now check if things
are installed before attempting to set aliases or run programs. This
allows easier sharing of this file for other users or even other
devices.

Reviewed-on: #46
2026-07-04 12:40:33 -04:00
wesley 80c8976c9d Deleted netspeed from tmux status bar (#46)
Decided that the netspeed isn't needed on the status bar and it kind of
gets in the way so decided to remove it.

Reviewed-on: #46
2026-06-06 19:07:01 -04:00
wesley 40de6cd46e Merge pull request 'Added stow. alias' (#44) from stow-tweak into development
Reviewed-on: #44
2026-05-20 20:18:34 -04:00
wesley 11a748fac0 Added stow. alias
Added a stow. alias as a shorthand for running stow --dotfiles.
2026-05-20 20:17:25 -04:00
2 changed files with 37 additions and 15 deletions
-2
View File
@@ -6,8 +6,6 @@ set -g @plugin 'janoamaral/tokyo-night-tmux'
# Tokyo Night config # Tokyo Night config
set -g @tokyo-night-tmux_theme 'storm' set -g @tokyo-night-tmux_theme 'storm'
set -g @tokyo-night-tmux_show_netspeed 1
set -g @tokyo-night-tmux_netspeed_iface "wlp4s0"
set -g @tokyo-night-tmux_window_id_style fsquare set -g @tokyo-night-tmux_window_id_style fsquare
# Set mouse on so that we can scroll with the mouse # Set mouse on so that we can scroll with the mouse
+37 -13
View File
@@ -3,22 +3,36 @@
############### ALIASES #################### ############### ALIASES ####################
# Load bottom with the proper color scheme # Load bottom with the proper color scheme
alias btm="btm --theme=gruvbox" if command -v btm &>/dev/null; then
alias btm="btm --theme=gruvbox"
fi
# Remap ls to use lsd # Remap ls to use lsd
alias ls="lsd" if command -v lsd &>/dev/null; then
alias ls="lsd"
# Add alias for la to call lsd -lah # Add alias for la to call lsd -lah
alias la="lsd -lah" alias la="lsd -lah"
fi
# Replace cat with bat # Replace cat with bat
alias cat="bat" if command -v bat &>/dev/null; then
alias cat="bat"
fi
# Alias cd to z for zoxide # Alias cd to z for zoxide
alias cd="z" if command -v zoxide &>/dev/null; then
alias cd="z"
fi
# Alias vim to nvim # Alias vim to nvim
alias vim="nvim" if command -v nvim &>/dev/null; then
alias vim="nvim"
fi
# Alias for stow --dotfiles
if command -v stow &>/dev/null; then
alias stow.="stow --dotfiles"
fi
############### END ALIASES ############### ############### END ALIASES ###############
@@ -28,7 +42,9 @@ alias vim="nvim"
export PATH=$HOME/.local/bin:$PATH export PATH=$HOME/.local/bin:$PATH
# Export my local-progs directory to find executables # Export my local-progs directory to find executables
export PATH=$HOME/local-progs/:$PATH if [[ -d "$HOME/local-progs" ]]; then
export PATH=$HOME/local-progs/:$PATH
fi
# Pre-configure settings for zsh-vi-mode # Pre-configure settings for zsh-vi-mode
function zvm_config() { function zvm_config() {
@@ -40,17 +56,25 @@ function zvm_config() {
# Add in our fzf integrations for zsh # Add in our fzf integrations for zsh
# Comment if you don't want the fzf integration # Comment if you don't want the fzf integration
source <(fzf --zsh) if command -v fzf &>/dev/null; then
source <(fzf --zsh)
fi
# Enable vi mode for zsh # Enable vi mode for zsh
source $HOME/local-progs/zsh-vi-mode/zsh-vi-mode.plugin.zsh if [[ -f "$HOME/local-progs/zsh-vi-mode/zsh-vi-mode.plugin.zsh" ]]; then
source $HOME/local-progs/zsh-vi-mode/zsh-vi-mode.plugin.zsh
fi
# We want to make sure that autocompletions are loaded # We want to make sure that autocompletions are loaded
autoload -Uz compinit && compinit autoload -Uz compinit && compinit
# Initialize zoxide # Initialize zoxide
eval "$(zoxide init zsh)" if command -v zoxide &>/dev/null; then
eval "$(zoxide init zsh)"
fi
# Finally we want to use starship for our prompt # Finally we want to use starship for our prompt
# (because rust that's why) # (because rust that's why)
eval "$(starship init zsh)" if command -v starship &>/dev/null; then
eval "$(starship init zsh)"
fi