summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkj_sh6042025-12-25 22:11:57 -0500
committerkj_sh6042025-12-25 22:11:57 -0500
commit1e8ccdb2a32eb203a2b60757212bdf97190e19f7 (patch)
tree59b565c96ace64b99e3111f6dbdd3c1afa2c13eb
parentac538b363641f32f2c69f15627887e6cd46806a6 (diff)
refactor: make sure zsh and fish have the same abbrs
-rw-r--r--.config/fish/config.fish7
-rw-r--r--.config/shell/.zshrc5
2 files changed, 5 insertions, 7 deletions
diff --git a/.config/fish/config.fish b/.config/fish/config.fish
index 0ce9dbe..966b113 100644
--- a/.config/fish/config.fish
+++ b/.config/fish/config.fish
@@ -7,7 +7,9 @@ if status is-interactive
7 fish_vi_key_bindings 7 fish_vi_key_bindings
8 8
9 # aliases 9 # aliases
10 alias grep='grep --color=auto' 10 if command grep --color=auto --version >/dev/null 2>&1
11 alias grep='grep --color=auto'
12 end
11 if which eza >/dev/null 2>&1 13 if which eza >/dev/null 2>&1
12 alias ls="eza" 14 alias ls="eza"
13 end 15 end
@@ -19,8 +21,6 @@ if status is-interactive
19 abbr -a c "cal" 21 abbr -a c "cal"
20 abbr -a d "disown" 22 abbr -a d "disown"
21 abbr -a dots "cd ~/.local/share/.dotfiles/" 23 abbr -a dots "cd ~/.local/share/.dotfiles/"
22 abbr -a egrep "grep -E"
23 abbr -a fgrep "grep -F"
24 abbr -a ks "killall screen" 24 abbr -a ks "killall screen"
25 abbr -a lgit 'lazygit' 25 abbr -a lgit 'lazygit'
26 abbr -a p "paru" 26 abbr -a p "paru"
@@ -30,7 +30,6 @@ if status is-interactive
30 abbr -a sr "screen -r" 30 abbr -a sr "screen -r"
31 abbr -a t "timedatectl" 31 abbr -a t "timedatectl"
32 abbr -a uncommit 'git reset --soft HEAD^' 32 abbr -a uncommit 'git reset --soft HEAD^'
33 abbr -a w "curl wttr.in"
34 abbr -a x "startx" 33 abbr -a x "startx"
35 abbr -a yt-best "youtube-dl -cif 'bestvideo+bestaudio/best'" 34 abbr -a yt-best "youtube-dl -cif 'bestvideo+bestaudio/best'"
36 abbr -a yt-m4a "youtube-dl -cif 'bestaudio[ext=m4a]'" 35 abbr -a yt-m4a "youtube-dl -cif 'bestaudio[ext=m4a]'"
diff --git a/.config/shell/.zshrc b/.config/shell/.zshrc
index 7fc291b..e6ebd2c 100644
--- a/.config/shell/.zshrc
+++ b/.config/shell/.zshrc
@@ -50,11 +50,10 @@ SAVEHIST=9999999
50 abbr -S --quiet t="timedatectl" 50 abbr -S --quiet t="timedatectl"
51 abbr -S --quiet uncommit="git reset --soft HEAD^" 51 abbr -S --quiet uncommit="git reset --soft HEAD^"
52 abbr -S --quiet x="startx" 52 abbr -S --quiet x="startx"
53
54 # youtube-dl abbreviations
55 abbr -S --quiet yt-best="youtube-dl -cif 'bestvideo+bestaudio/best'" 53 abbr -S --quiet yt-best="youtube-dl -cif 'bestvideo+bestaudio/best'"
56 abbr -S --quiet yt-m4a="youtube-dl -cif 'bestaudio[ext=m4a]'" 54 abbr -S --quiet yt-m4a="youtube-dl -cif 'bestaudio[ext=m4a]'"
57 abbr -S --quiet yt-mp4="youtube-dl -cif 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'" 55 abbr -S --quiet yt-mp4="youtube-dl -cif 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'"
56 abbr -S --quiet yt-mpv="mpv --ytdl-format="
58 abbr -S --quiet yt-webm="youtube-dl -cif 'bestvideo[ext=webm]+bestaudio[ext=webm]/best[ext=webm]/best'" 57 abbr -S --quiet yt-webm="youtube-dl -cif 'bestvideo[ext=webm]+bestaudio[ext=webm]/best[ext=webm]/best'"
59 58
60# pfetch stuff 59# pfetch stuff
@@ -133,4 +132,4 @@ bindkey "^b" backward-word
133bindkey "^[[A" history-substring-search-up 132bindkey "^[[A" history-substring-search-up
134bindkey "^[[B" history-substring-search-down 133bindkey "^[[B" history-substring-search-down
135bindkey -M vicmd "k" history-substring-search-up 134bindkey -M vicmd "k" history-substring-search-up
136bindkey -M vicmd "j" history-substring-search-down \ No newline at end of file 135bindkey -M vicmd "j" history-substring-search-down