From 614e22dd677648ce42367582f67bf8c7db367de8 Mon Sep 17 00:00:00 2001 From: Pratik Tripathy Date: Tue, 24 Dec 2024 18:46:35 +0530 Subject: [PATCH] chore: Remove rust env from .bashrc, move tmux aliases here, redundant path setting removed from .profile --- common/.bashrc | 1 - common/.config/shell/aliases.sh | 7 +++++++ common/.profile | 3 --- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/common/.bashrc b/common/.bashrc index aa1b6a7..9a6946b 100644 --- a/common/.bashrc +++ b/common/.bashrc @@ -189,4 +189,3 @@ for alias_file in "$XDG_CONFIG_HOME"/shell/*.sh; do source "$alias_file"; done # TIP: Following should be executed AFTER the aliases are sourced command -v op >/dev/null && bind '"^O":"op\n"' # Fuzzyfind projects and open in nvim command -v pnew >/dev/null && bind '"^[o":"pnew\n"' # Create a new project quickly -. "/home/pratik/.local/share/rust/cargo/env" diff --git a/common/.config/shell/aliases.sh b/common/.config/shell/aliases.sh index 4552ac9..546765b 100644 --- a/common/.config/shell/aliases.sh +++ b/common/.config/shell/aliases.sh @@ -33,6 +33,13 @@ mkcd() { cd "$1" || exit } +# Tmux +command -v tmux >/dev/null && alias ta="tmux a" +command -v tmux >/dev/null && alias tat="tmux a -t" +command -v tmux >/dev/null && alias tls="tmux ls" +command -v tmux >/dev/null && alias tnew="tmux new" +command -v tmux >/dev/null && alias tnewt="tmux new -t" + # Network alias ping="ping -c 10" alias ping8="ping 8.8.8.8" diff --git a/common/.profile b/common/.profile index 9eb6fa3..130be33 100644 --- a/common/.profile +++ b/common/.profile @@ -3,9 +3,6 @@ [ ! -f "/home/linuxbrew/.linuxbrew/bin/brew" ] || eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" [ ! -f "/opt/homebrew/bin/brew" ] || eval "$(/opt/homebrew/bin/brew shellenv)" -# set PATH so it includes user's private bin if it exists -[ ! -d "$HOME/bin" ] || PATH="$HOME/bin:$PATH" - # set PATH so it includes user's private bin if it exists # HACK: Appended to end of $PATH instead of beginning # Kitty can't seem to locate nvim when .local/bin is path-ed earlier