From deea09dac51572adaa89a50a5d133a53f7ed0675 Mon Sep 17 00:00:00 2001 From: FaultyBranches Date: Sat, 23 May 2026 20:26:12 -0500 Subject: [PATCH] feat: Cleaning up the tmux config, cleanup of zsh aliases and moving some functions to aliases --- tmux.conf | 28 +++++++++++----------------- zsh/zsh_aliases | 10 ++++++++-- zsh/zsh_functions | 16 ++++------------ 3 files changed, 23 insertions(+), 31 deletions(-) diff --git a/tmux.conf b/tmux.conf index 9089dbc..3ce927d 100644 --- a/tmux.conf +++ b/tmux.conf @@ -1,6 +1,6 @@ # True color support -set-option -g default-terminal "tmux-256color" -set-option -ga terminal-overrides ",xterm-256color:Tc" +set-option -g default-terminal 'tmux-256color' +set-option -ga terminal-overrides ',xterm-256color:Tc' # Set encoding to Unicode8 setw -gq utf8 on @@ -14,30 +14,24 @@ set -g mouse on # Disable auto-renaming of windows set-option -g allow-rename -# Bindings -## More comfortable prefix binding -# unbind C-b -# set-option -g prefix C-Space -# bind-key C-Space send-prefix +# More natural window splits +bind \\ split-window -h -c '#{pane_current_path}' +bind - split-window -v -c '#{pane_current_path}' -## More natural window splits -bind \\ split-window -h -c "#{pane_current_path}" -bind - split-window -v -c "#{pane_current_path}" - -## Remove original split shortcuts +# Remove original split shortcuts unbind '"' unbind % -## Reload the config while inside of tmux -bind r source-file ~/.tmux.conf; display-message "Config reloaded..." +# Reload the config while inside of tmux +bind r source-file ~/.tmux.conf; display-message 'Config reloaded...' -## Better pane navigation +# Better pane navigation bind -n C-M-h select-pane -L bind -n C-M-j select-pane -D bind -n C-M-k select-pane -U bind -n C-M-l select-pane -R -## Quick jump between windows like buffers in nvim +# Quick jump between windows like buffers in nvim bind -n M-h previous-window bind -n M-l next-window @@ -47,5 +41,5 @@ set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-yank' set -g @plugin 'egel/tmux-gruvbox' -## Required for TPM plugins +# Required for TPM plugins run '~/.tmux/plugins/tpm/tpm' diff --git a/zsh/zsh_aliases b/zsh/zsh_aliases index c8709ea..0960a4a 100644 --- a/zsh/zsh_aliases +++ b/zsh/zsh_aliases @@ -4,8 +4,14 @@ alias mv="mv -i" # Prompt before moving files alias df="df -h" # Always use the human readable formatting alias du="du -h -d 1" # Always use human readable format and only for the current dir by default alias k="killall" # Quick killall -alias p="ps aux | grep $1" # Quick +alias p="ps ux | grep $1" # Quick process search alias n="$EDITOR" # Just open the usual editor -alias todo="nvim ~/.zettelkasten/TODO.md" + +# Switch directories alias repos="cd ~/repos/" alias dot="cd ~/repos/dotfiles" + +# Note taking +alias todo="nvim ~/.zettelkasten/TODO.md" +alias note="nvim -c ':Telekasten new_note'" +alias today="nvim -c ':Telekasten goto_today'" diff --git a/zsh/zsh_functions b/zsh/zsh_functions index cf49d2b..a8f01a9 100644 --- a/zsh/zsh_functions +++ b/zsh/zsh_functions @@ -12,18 +12,10 @@ function timezsh() { # Custom rsync move function that also removes empty directories that have their contents removed # NOTE: This will delete *any* empty directories in the CWD -function rmv() { - rsync -avzhP --remove-source-files --ignore-existing "${@:1:$#-1}" "${@:$#}" && \ - find ./* -depth -type d -empty -exec rmdir "{}" \; -} - -function note() { - nvim -c ":Telekasten new_note" -} - -function today() { - nvim -c ":Telekasten goto_today" -} +# function rmv() { + # rsync -avzhP --remove-source-files --ignore-existing "${@:1:$#-1}" "${@:$#}" && \ + # find ./* -depth -type d -empty -exec rmdir "{}" \; +# } function path() { echo -e ${PATH//:/\\n}