addet qfc to bashrc
This commit is contained in:
parent
532ed8b743
commit
cc8e05e3d5
1 changed files with 26 additions and 18 deletions
28
.bashrc
28
.bashrc
|
@ -160,6 +160,23 @@ _defaults_() {
|
|||
fi
|
||||
}
|
||||
|
||||
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)
|
||||
case "$TERM" in
|
||||
|
@ -310,15 +327,6 @@ _cli_qol_() {
|
|||
curl -s https://ohmyposh.dev/install.sh | sudo bash -s -- -d /usr/bin/
|
||||
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) >───────────────────────────────────────────────────────────────
|
||||
|
@ -575,6 +583,6 @@ main() {
|
|||
check_root
|
||||
get_packager
|
||||
get_alias
|
||||
plugins
|
||||
}
|
||||
main
|
||||
[[ ${BLE_VERSION-} ]] && ble-attach
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue