cake alias
This commit is contained in:
parent
1ed4f0e147
commit
b5723a70e1
1 changed files with 37 additions and 33 deletions
70
aliases.fish
70
aliases.fish
|
@ -10,23 +10,23 @@ if command -v lsd >/dev/null 2>&1
|
||||||
else
|
else
|
||||||
# ─< exa >──────────────────────────────────────────────────────────────────────────────────
|
# ─< exa >──────────────────────────────────────────────────────────────────────────────────
|
||||||
if command -v exa >/dev/null 2>&1
|
if command -v exa >/dev/null 2>&1
|
||||||
alias ls="exa --icons --long --git"
|
alias ls="exa --icons --long --git"
|
||||||
alias l="exa --icons -l"
|
alias l="exa --icons -l"
|
||||||
alias ll="exa --icons -laa"
|
alias ll="exa --icons -laa"
|
||||||
alias tree="exa --icons -l -tree"
|
alias tree="exa --icons -l -tree"
|
||||||
else
|
else
|
||||||
# ─< eza >──────────────────────────────────────────────────────────────────────────────────
|
# ─< eza >──────────────────────────────────────────────────────────────────────────────────
|
||||||
if command -v eza >/dev/null 2>&1
|
if command -v eza >/dev/null 2>&1
|
||||||
alias ls="eza --icons --long --git"
|
alias ls="eza --icons --long --git"
|
||||||
alias l="eza --icons -l"
|
alias l="eza --icons -l"
|
||||||
alias ll="eza --icons -laa"
|
alias ll="eza --icons -laa"
|
||||||
alias tree="eza --icons -l -tree"
|
alias tree="eza --icons -l -tree"
|
||||||
else
|
else
|
||||||
# ─< if nothing works -- plain old ls >─────────────────────────────────────────────────────
|
# ─< if nothing works -- plain old ls >─────────────────────────────────────────────────────
|
||||||
alias ls="ls --color=always -lph"
|
alias ls="ls --color=always -lph"
|
||||||
alias l="ls --color=always -lph"
|
alias l="ls --color=always -lph"
|
||||||
alias ll="ls --color=always -lAph"
|
alias ll="ls --color=always -lAph"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -81,13 +81,13 @@ if command -v fastfetch >/dev/null 2>&1
|
||||||
command fastfetch --config os >/dev/null 2>&1
|
command fastfetch --config os >/dev/null 2>&1
|
||||||
# ─< check the status >─────────────────────────────────────────────────────────────────────
|
# ─< check the status >─────────────────────────────────────────────────────────────────────
|
||||||
switch $status
|
switch $status
|
||||||
case 0
|
case 0
|
||||||
alias f="fastfetch --config os"
|
alias f="fastfetch --config os"
|
||||||
# ─< unsuccessful, cloning repo >──────────────────────────────────────────────────────────
|
# ─< unsuccessful, cloning repo >──────────────────────────────────────────────────────────
|
||||||
case '*'
|
case '*'
|
||||||
git clone https://git.k4li.de/mirrors/fastfetch.git $HOME/.local/share/fastfetch >/dev/null 2>&1
|
git clone https://git.k4li.de/mirrors/fastfetch.git $HOME/.local/share/fastfetch >/dev/null 2>&1
|
||||||
# ─< execute fish to reinitialize aliases >────────────────────────────────────────────────
|
# ─< execute fish to reinitialize aliases >────────────────────────────────────────────────
|
||||||
exec fish
|
exec fish
|
||||||
end
|
end
|
||||||
clear & f
|
clear & f
|
||||||
alias clear="clear & f"
|
alias clear="clear & f"
|
||||||
|
@ -132,7 +132,7 @@ if command -v git >/dev/null 2>&1
|
||||||
alias gcm="git commit -m"
|
alias gcm="git commit -m"
|
||||||
alias gpu="git push --recurse-submodule=on-demand"
|
alias gpu="git push --recurse-submodule=on-demand"
|
||||||
if command -v lazygit >/dev/null 2>&1
|
if command -v lazygit >/dev/null 2>&1
|
||||||
alias lg="lazygit"
|
alias lg="lazygit"
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -142,10 +142,15 @@ end
|
||||||
|
|
||||||
# ─< h stands for HUGO >──────────────────────────────────────────────────────────────────
|
# ─< h stands for HUGO >──────────────────────────────────────────────────────────────────
|
||||||
if command -v hugo >/dev/null 2>&1
|
if command -v hugo >/dev/null 2>&1
|
||||||
alias h='hugo'
|
alias h='hugo'
|
||||||
alias hs='hugo server -D --noHTTPCache --disableFastRender'
|
alias hs='hugo server -D --noHTTPCache --disableFastRender'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# ─< c stands for bin/cake >──────────────────────────────────────────────────────────────
|
||||||
|
alias cake='bin/cake'
|
||||||
|
alias c='cake'
|
||||||
|
alias cs='c server -p 1313'
|
||||||
|
|
||||||
# ─< VSCodium >─────────────────────────────────────────────────────────────────────────────
|
# ─< VSCodium >─────────────────────────────────────────────────────────────────────────────
|
||||||
if command -v codium >/dev/null 2>&1
|
if command -v codium >/dev/null 2>&1
|
||||||
alias code="codium"
|
alias code="codium"
|
||||||
|
@ -155,11 +160,10 @@ end
|
||||||
|
|
||||||
# ─< neovide, the best frontend for any neovim-config >───────────────────────────────────
|
# ─< neovide, the best frontend for any neovim-config >───────────────────────────────────
|
||||||
if test -d $HOME/.local/share/neovide/
|
if test -d $HOME/.local/share/neovide/
|
||||||
if command -v neovide >/dev/null 2>&1
|
if command -v neovide >/dev/null 2>&1
|
||||||
alias nvim='neovide --fork'
|
alias nvim='neovide --fork'
|
||||||
else
|
else
|
||||||
set -p neovide (bash -c 'find $HOME/ -name *neovide*.appimage') || set -p neovide "neovide" || exit 1
|
set -p neovide (bash -c 'find $HOME/ -name *neovide*.appimage') || set -p neovide neovide || exit 1
|
||||||
alias nvim="$neovide"
|
alias nvim="$neovide"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue