addet qfc to bashrc
This commit is contained in:
parent
532ed8b743
commit
cc8e05e3d5
1 changed files with 26 additions and 18 deletions
36
.bashrc
36
.bashrc
|
@ -160,7 +160,24 @@ _defaults_() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_color_prompt_() {
|
plugins(){
|
||||||
|
if ! command_exists has; then
|
||||||
|
$(git clone https://github.com/kdabir/has.git /tmp/has && cd /tmp/has && sudo make install)
|
||||||
|
else
|
||||||
|
tools(){
|
||||||
|
local pkgs="bash fish git curl make cmake gcc g++ rg docker composer node npm php jre python3 go cargo"
|
||||||
|
has $pkgs
|
||||||
|
}
|
||||||
|
fi
|
||||||
|
# ─< ble.sh -- https://github.com/akinomyoga/ble.sh >─────────────────────────────────────
|
||||||
|
[[ -f $HOME/.local/share/blesh/ble.sh ]] && . $HOME/.local/share/blesh/ble.sh
|
||||||
|
[[ ${BLE_VERSION-} ]] && ble-attach
|
||||||
|
|
||||||
|
# ─< qfc -- https://github.com/pindexis/qfc >─────────────────────────────────────────────
|
||||||
|
[[ -s "$HOME/.qfc/bin/qfc.sh" ]] && source "$HOME/.qfc/bin/qfc.sh"
|
||||||
|
}
|
||||||
|
|
||||||
|
_color_prompt_() {
|
||||||
# set a fancy prompt (non-color, unless we know we "want" color)
|
# set a fancy prompt (non-color, unless we know we "want" color)
|
||||||
case "$TERM" in
|
case "$TERM" in
|
||||||
xterm-color | *-256color) color_prompt=yes ;;
|
xterm-color | *-256color) color_prompt=yes ;;
|
||||||
|
@ -189,10 +206,10 @@ _defaults_() {
|
||||||
fi
|
fi
|
||||||
unset color_prompt force_color_prompt
|
unset color_prompt force_color_prompt
|
||||||
}
|
}
|
||||||
# ─< check if command exists >────────────────────────────────────────────────────────────
|
# ─< check if command exists >────────────────────────────────────────────────────────────
|
||||||
command_exists() {
|
command_exists() {
|
||||||
command -v "$1" >/dev/null 2>&1
|
command -v "$1" >/dev/null 2>&1
|
||||||
}
|
}
|
||||||
|
|
||||||
# ─< Silent execution >─────────────────────────────────────────────────────────────────
|
# ─< Silent execution >─────────────────────────────────────────────────────────────────
|
||||||
silentexec() {
|
silentexec() {
|
||||||
|
@ -310,15 +327,6 @@ _cli_qol_() {
|
||||||
curl -s https://ohmyposh.dev/install.sh | sudo bash -s -- -d /usr/bin/
|
curl -s https://ohmyposh.dev/install.sh | sudo bash -s -- -d /usr/bin/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if ! command_exists has; then
|
|
||||||
$(git clone https://github.com/kdabir/has.git /tmp/has && cd /tmp/has && sudo make install)
|
|
||||||
else
|
|
||||||
tools(){
|
|
||||||
local pkgs="bash fish git curl make cmake gcc g++ rg docker composer node npm php jre python3 go cargo"
|
|
||||||
has $pkgs
|
|
||||||
}
|
|
||||||
fi
|
|
||||||
[[ -f $HOME/.local/share/blesh/ble.sh ]] && . $HOME/.local/share/blesh/ble.sh
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# ─< t stands for trash(-cli) >───────────────────────────────────────────────────────────────
|
# ─< t stands for trash(-cli) >───────────────────────────────────────────────────────────────
|
||||||
|
@ -575,6 +583,6 @@ main() {
|
||||||
check_root
|
check_root
|
||||||
get_packager
|
get_packager
|
||||||
get_alias
|
get_alias
|
||||||
|
plugins
|
||||||
}
|
}
|
||||||
main
|
main
|
||||||
[[ ${BLE_VERSION-} ]] && ble-attach
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue