mirror of
https://github.com/arthur-pbty/arthur-os.git
synced 2026-08-05 20:28:25 +02:00
* Use tmux native method of renaming windows This uses tmux's built in method of renaming windows, and it even works with pane switching rather than relying on cd to change the window name * Update config/tmux/tmux.conf I agree with the copilot suggestion Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --------- Co-authored-by: Jadon Brutcher <jadon.brutcher@deltamobile.com> Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
53 lines
1.1 KiB
Plaintext
53 lines
1.1 KiB
Plaintext
# File system
|
|
if command -v eza &> /dev/null; then
|
|
alias ls='eza -lh --group-directories-first --icons=auto'
|
|
alias lsa='ls -a'
|
|
alias lt='eza --tree --level=2 --long --icons --git'
|
|
alias lta='lt -a'
|
|
fi
|
|
|
|
alias ff="fzf --preview 'bat --style=numbers --color=always {}'"
|
|
alias eff='$EDITOR "$(ff)"'
|
|
|
|
if command -v zoxide &> /dev/null; then
|
|
alias cd="zd"
|
|
zd() {
|
|
if (( $# == 0 )); then
|
|
builtin cd ~ || return
|
|
elif [[ -d $1 ]]; then
|
|
builtin cd "$1" || return
|
|
else
|
|
if ! z "$@"; then
|
|
echo "Error: Directory not found"
|
|
return 1
|
|
fi
|
|
|
|
printf "\U000F17A9 "
|
|
pwd
|
|
fi
|
|
}
|
|
fi
|
|
|
|
open() (
|
|
xdg-open "$@" >/dev/null 2>&1 &
|
|
)
|
|
|
|
# Directories
|
|
alias ..='cd ..'
|
|
alias ...='cd ../..'
|
|
alias ....='cd ../../..'
|
|
|
|
# Tools
|
|
alias c='opencode'
|
|
alias cx='printf "\033[2J\033[3J\033[H" && claude --allow-dangerously-skip-permissions'
|
|
alias d='docker'
|
|
alias r='rails'
|
|
alias t='tmux attach || tmux new -s Work'
|
|
n() { if [ "$#" -eq 0 ]; then command nvim . ; else command nvim "$@"; fi; }
|
|
|
|
# Git
|
|
alias g='git'
|
|
alias gcm='git commit -m'
|
|
alias gcam='git commit -a -m'
|
|
alias gcad='git commit -a --amend'
|