chore: Remove rust env from .bashrc, move tmux aliases here, redundant

path setting removed from .profile
This commit is contained in:
Pratik Tripathy
2024-12-24 18:46:35 +05:30
parent 1ceab0a908
commit 614e22dd67
3 changed files with 7 additions and 4 deletions

View File

@@ -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 # 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 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 command -v pnew >/dev/null && bind '"^[o":"pnew\n"' # Create a new project quickly
. "/home/pratik/.local/share/rust/cargo/env"

View File

@@ -33,6 +33,13 @@ mkcd() {
cd "$1" || exit 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 # Network
alias ping="ping -c 10" alias ping="ping -c 10"
alias ping8="ping 8.8.8.8" alias ping8="ping 8.8.8.8"

View File

@@ -3,9 +3,6 @@
[ ! -f "/home/linuxbrew/.linuxbrew/bin/brew" ] || eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)" [ ! -f "/home/linuxbrew/.linuxbrew/bin/brew" ] || eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
[ ! -f "/opt/homebrew/bin/brew" ] || eval "$(/opt/homebrew/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 # set PATH so it includes user's private bin if it exists
# HACK: Appended to end of $PATH instead of beginning # HACK: Appended to end of $PATH instead of beginning
# Kitty can't seem to locate nvim when .local/bin is path-ed earlier # Kitty can't seem to locate nvim when .local/bin is path-ed earlier