some changes
This commit is contained in:
parent
4b60c50202
commit
5a11540bf8
2 changed files with 495 additions and 486 deletions
30
.bashrc
30
.bashrc
|
@ -9,10 +9,10 @@ function echo_info() { echo -e "\033[0;35m${*}\033[0m"; }
|
||||||
# for examples
|
# for examples
|
||||||
|
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
case $- in
|
# case $- in
|
||||||
*i*) ;;
|
# *i*) ;;
|
||||||
*) return ;;
|
# *) return ;;
|
||||||
esac
|
# esac
|
||||||
|
|
||||||
_defaults_() {
|
_defaults_() {
|
||||||
# don't put duplicate lines or lines starting with space in the history.
|
# don't put duplicate lines or lines starting with space in the history.
|
||||||
|
@ -269,15 +269,6 @@ _cat_() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_fzf_() {
|
|
||||||
if command_exists fzf; then
|
|
||||||
# Set up fzf key bindings and fuzzy completion
|
|
||||||
eval "$(fzf --bash)"
|
|
||||||
source ./fzf-bash-completion.sh
|
|
||||||
bind -x '"\t": fzf_bash_completion'
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
_fetches_() {
|
_fetches_() {
|
||||||
# ─< fastfetch >────────────────────────────────────────────────────────────────────────────
|
# ─< fastfetch >────────────────────────────────────────────────────────────────────────────
|
||||||
if command_exists fastfetch; then
|
if command_exists fastfetch; then
|
||||||
|
@ -289,9 +280,7 @@ _fetches_() {
|
||||||
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
|
||||||
exec $SHELL
|
exec $SHELL
|
||||||
fi
|
fi
|
||||||
clear &
|
alias clear="clear & ff"
|
||||||
f
|
|
||||||
alias clear="clear & f"
|
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -386,9 +375,11 @@ get_packager() {
|
||||||
refresh="nala update"
|
refresh="nala update"
|
||||||
remove="nala remove"
|
remove="nala remove"
|
||||||
purge="nala purge"
|
purge="nala purge"
|
||||||
|
search="nala search"
|
||||||
alias update="$_sudo $refresh && $_sudo $upgrade"
|
alias update="$_sudo $refresh && $_sudo $upgrade"
|
||||||
alias install="$_sudo $refresh && $_sudo $install"
|
alias install="$_sudo $refresh && $_sudo $install"
|
||||||
alias remove="$_sudo $remove && $_sudo $purge && $_sudo $clean"
|
alias remove="$_sudo $remove && $_sudo $purge && $_sudo $clean"
|
||||||
|
alias search="$search"
|
||||||
elif command_exists apt-get; then
|
elif command_exists apt-get; then
|
||||||
PKG="apt-get"
|
PKG="apt-get"
|
||||||
install="apt-get install --yes"
|
install="apt-get install --yes"
|
||||||
|
@ -397,9 +388,11 @@ get_packager() {
|
||||||
clean="apt-get autoremove"
|
clean="apt-get autoremove"
|
||||||
remove="apt-get remove"
|
remove="apt-get remove"
|
||||||
purge="apt-get purge"
|
purge="apt-get purge"
|
||||||
|
search="apt-cache search"
|
||||||
alias update="$_sudo $refresh && $_sudo $upgrade"
|
alias update="$_sudo $refresh && $_sudo $upgrade"
|
||||||
alias install="$_sudo $refresh && $_sudo $install"
|
alias install="$_sudo $refresh && $_sudo $install"
|
||||||
alias remove="$_sudo $remove && $_sudo $purge && $_sudo $clean"
|
alias remove="$_sudo $remove && $_sudo $purge && $_sudo $clean"
|
||||||
|
alias search="$search"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
arch | manjaro | endevouros)
|
arch | manjaro | endevouros)
|
||||||
|
@ -408,16 +401,19 @@ get_packager() {
|
||||||
alias install="yay -S --noconfirm"
|
alias install="yay -S --noconfirm"
|
||||||
alias update="yay -Syu"
|
alias update="yay -Syu"
|
||||||
alias remove="yay -R"
|
alias remove="yay -R"
|
||||||
|
alias search="yay -Ss"
|
||||||
elif command_exists paru; then
|
elif command_exists paru; then
|
||||||
PKG="paru"
|
PKG="paru"
|
||||||
alias install="paru -S --noconfirm"
|
alias install="paru -S --noconfirm"
|
||||||
alias update="paru -Syu"
|
alias update="paru -Syu"
|
||||||
alias remove="paru -R"
|
alias remove="paru -R"
|
||||||
|
alias search="paru -Ss"
|
||||||
elif command_exists pacman; then
|
elif command_exists pacman; then
|
||||||
PKG="pacman"
|
PKG="pacman"
|
||||||
alias install="$_sudo pacman -S --noconfirm"
|
alias install="$_sudo pacman -S --noconfirm"
|
||||||
alias update="$_sudo pacman -Syu"
|
alias update="$_sudo pacman -Syu"
|
||||||
alias remove="$_sudo pacman -R"
|
alias remove="$_sudo pacman -R"
|
||||||
|
alias search="$_sudo pacman -Ss"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
fedora | centos)
|
fedora | centos)
|
||||||
|
@ -425,6 +421,7 @@ get_packager() {
|
||||||
alias install="dnf install --yes"
|
alias install="dnf install --yes"
|
||||||
alias update="dnf update"
|
alias update="dnf update"
|
||||||
alias remove="dnf remove"
|
alias remove="dnf remove"
|
||||||
|
alias search="dnf search"
|
||||||
;;
|
;;
|
||||||
alpine)
|
alpine)
|
||||||
PKG="apk"
|
PKG="apk"
|
||||||
|
@ -445,7 +442,6 @@ get_alias() {
|
||||||
_color_prompt_
|
_color_prompt_
|
||||||
_cli_qol_
|
_cli_qol_
|
||||||
_cat_
|
_cat_
|
||||||
# _fzf_
|
|
||||||
_trash
|
_trash
|
||||||
_nmap_
|
_nmap_
|
||||||
_tmux_
|
_tmux_
|
||||||
|
|
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue