-
-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: rollback helper use stable fix: bluefin-cli only source and run commands if it exists and commands are available
- Loading branch information
Showing
5 changed files
with
40 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 16 additions & 12 deletions
28
system_files/shared/usr/share/ublue-os/bluefin-cli/bling.fish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
# ls aliases | ||
alias ll='eza -l --icons=auto --group-directories-first' | ||
alias l.='eza -d .*' | ||
alias ls='eza' | ||
alias l1='eza -1' | ||
if [ "$(command -v eza)" ] | ||
alias ll='eza -l --icons=auto --group-directories-first' | ||
alias l.='eza -d .*' | ||
alias ls='eza' | ||
alias l1='eza -1' | ||
end | ||
|
||
# ugrep for grep | ||
alias grep='ug' | ||
alias egrep='ug -E' | ||
alias fgrep='ug -F' | ||
alias xzgrep='ug -z' | ||
alias xzegrep='ug -zE' | ||
alias xzfgrep='ug -zF' | ||
if [ "$(command -v ug)" ] | ||
alias grep='ug' | ||
alias egrep='ug -E' | ||
alias fgrep='ug -F' | ||
alias xzgrep='ug -z' | ||
alias xzegrep='ug -zE' | ||
alias xzfgrep='ug -zF' | ||
end | ||
|
||
if status is-interactive | ||
eval "$(atuin init fish)" | ||
eval "$(zoxide init fish)" | ||
[ "$(command -v atuin)" ] && eval "$(atuin init fish)" | ||
[ "$(command -v zoxide)" ] && eval "$(zoxide init fish)" | ||
end |
32 changes: 18 additions & 14 deletions
32
system_files/shared/usr/share/ublue-os/bluefin-cli/bling.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,29 @@ | ||
#!/usr/bin/env sh | ||
|
||
# ls aliases | ||
alias ll='eza -l --icons=auto --group-directories-first' | ||
alias l.='eza -d .*' | ||
alias ls='eza' | ||
alias l1='eza -1' | ||
if [ "$(command -v eza)" ]; then | ||
alias ll='eza -l --icons=auto --group-directories-first' | ||
alias l.='eza -d .*' | ||
alias ls='eza' | ||
alias l1='eza -1' | ||
fi | ||
|
||
# ugrep for grep | ||
alias grep='ug' | ||
alias egrep='ug -E' | ||
alias fgrep='ug -F' | ||
alias xzgrep='ug -z' | ||
alias xzegrep='ug -zE' | ||
alias xzfgrep='ug -zF' | ||
if [ "$(command -v ug)" ]; then | ||
alias grep='ug' | ||
alias egrep='ug -E' | ||
alias fgrep='ug -F' | ||
alias xzgrep='ug -z' | ||
alias xzegrep='ug -zE' | ||
alias xzfgrep='ug -zF' | ||
fi | ||
|
||
if [ "$(basename "$SHELL")" = "bash" ]; then | ||
#shellcheck disable=SC1091 | ||
. /usr/share/bash-prexec | ||
eval "$(atuin init bash)" | ||
eval "$(zoxide init bash)" | ||
[ "$(command -v atuin)" ] && eval "$(atuin init bash)" | ||
[ "$(command -v zoxide)" ] && eval "$(zoxide init bash)" | ||
elif [ "$(basename "$SHELL")" = "zsh" ]; then | ||
eval "$(atuin init zsh)" | ||
eval "$(zoxide init zsh)" | ||
[ "$(command -v atuin)" ] && eval "$(atuin init zsh)" | ||
[ "$(command -v zoxide)" ] && eval "$(zoxide init zsh)" | ||
fi |