Alias only what the machine will actually have

vim aliased to vimx, which no list installed; bat invoked by its Debian
name, which Fedora does not ship; sunshine restarted by an alias when
nothing here installs sunshine. vim-X11 is now declared so vimx exists,
ff previews with bat, and the sunshine alias moved to the gitignored
env of the one machine that has it.
This commit is contained in:
Gabriel Brown
2026-08-21 17:43:33 -04:00
parent 6d1f3f3763
commit 7d633eb06e
2 changed files with 5 additions and 2 deletions
+2 -2
View File
@@ -3,7 +3,6 @@
# Aliases I like
alias :q="exit"
alias :wq="exit"
alias startsunshine="systemctl --user restart sunshine.service"
alias sourcerc="source ~/.bashrc"
alias c="clear"
alias shutdown="systemctl poweroff"
@@ -32,7 +31,8 @@ alias ls='eza -lh --group-directories-first --icons'
alias lsa='ls -a'
alias lt='eza --tree --level=2 --long --icons --git'
alias lta='lt -a'
alias ff="fzf --preview 'batcat --style=numbers --color=always {}'"
# Fedora's bat installs /usr/bin/bat; batcat is the Debian name.
alias ff="fzf --preview 'bat --style=numbers --color=always {}'"
# Directories
alias ..='cd ..'
+3
View File
@@ -30,3 +30,6 @@ python3-virtualenv
ripgrep
ruby
sqlite3
# vimx: clipboard-capable vim, which the shipped `vim` alias and the vimrc
# that link-dotfiles installs both assume. Fedora carries it as vim-X11.
vim-X11