aboutsummaryrefslogtreecommitdiff
path: root/.config/fish
diff options
context:
space:
mode:
authorkj-sh6042024-07-21 04:26:50 -0400
committerkj-sh6042024-07-21 04:26:50 -0400
commit58a9ae3fd5723bc90819155bb25f8d864290c86f (patch)
tree60c300fcee5a582f707f859c50d7de17e56d8d83 /.config/fish
parent5af0c6ebd54035956b6504b9dfc24139d572ba54 (diff)
refactor: use `abbr` when reasonable
Diffstat (limited to '.config/fish')
-rw-r--r--.config/fish/config.fish44
1 files changed, 18 insertions, 26 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
index d50d750..aa06e99 100644
--- a/.config/fish/config.fish
+++ b/.config/fish/config.fish
@@ -8,41 +8,33 @@ if status is-interactive
# commands to run in interactive sessions can go here
fish_vi_key_bindings
- # personal aliases and abbreviations
- # alias echo=(command which echo)
- # alias printf=(command which printf)
- abbr --add ks "killall screen"
- abbr --add s "screen"
- abbr --add sl "screen -ls"
- abbr --add sr "screen -r"
- alias S="cd ~/.local/bin && ls"
- alias c="cal"
- alias d="disown"
- alias dots="cd ~/.local/share/.dotfiles/"
+ # abbreviations
+ abbr -a S "cd ~/.local/bin && ls"
+ abbr -a c "cal"
+ abbr -a d "disown"
+ abbr -a dots "cd ~/.local/share/.dotfiles/"
+ abbr -a ks "killall screen"
+ abbr -a p "paru"
+ abbr -a pu "paru -Syu --noconfirm"
+ abbr -a s "screen"
+ abbr -a sl "screen -ls"
+ abbr -a sr "screen -r"
+ abbr -a t "timedatectl"
+ abbr -a w "curl wttr.in"
+ abbr -a x "startx"
+ abbr -a yt-m4a "youtube-dl -cif 'bestaudio[ext=m4a]'"
+ abbr -a yt-mp4 "youtube-dl -cif 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'"
+ abbr -a yt-webm "youtube-dl -cif 'bestvideo[ext=webm]+bestaudio[ext=webm]/best[ext=webm]/best'"
+ # aliases
alias egrep='grep -E'
alias fgrep='grep -F'
alias grep='grep --colour=auto'
alias ls="ls --group-directories-first -h -p --color -F"
alias neofetch="alsi"
- alias p="paru"
- alias pu="paru -Syu --noconfirm"
- alias t="timedatectl"
- alias w="curl wttr.in"
- alias x="startx"
-
- # conditionally alias cat to bat -p if bat is installed
if which bat >/dev/null 2>&1
alias cat="bat -p"
end
- # youtube-dl aliases
- alias yt-mp4="youtube-dl -cif 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'"
- alias yt-webm="youtube-dl -cif 'bestvideo[ext=webm]+bestaudio[ext=webm]/best[ext=webm]/best'"
- alias yt-m4a="youtube-dl -cif 'bestaudio[ext=m4a]'"
-
- # environment variable declarations
- export PF_INFO="ascii title os kernel uptime pkgs memory"
-
# less termcap variables (for colored man pages)
set -gx LESS_TERMCAP_mb \e'[1;32m'
set -gx LESS_TERMCAP_md \e'[1;32m'