some changes
This commit is contained in:
parent
8c0178c768
commit
546100f0e5
1 changed files with 11 additions and 23 deletions
32
.zshrc
32
.zshrc
|
@ -172,22 +172,10 @@ DEBUG_PLUG=""
|
|||
plugin $zPlug loadet."
|
||||
done
|
||||
|
||||
p_has() {
|
||||
if ! command_exists has; then
|
||||
inst_has() {
|
||||
git clone https://github.com/kdabir/has.git /tmp/has && cd /tmp/has && sudo make install && cd $HOME/ && rm -r /tmp/has
|
||||
}
|
||||
echo_info "Installing has"
|
||||
inst_has >/dev/null 2>&1
|
||||
else
|
||||
tools() {
|
||||
local pkgs=("bash" "zsh" "git" "curl" "make" "cmake" "gcc" "g++" "rg" "docker" "composer" "node" "npm" "php" "jre" "python3" "go" "cargo")
|
||||
has $pkgs
|
||||
}
|
||||
if command_exists cowsay; then
|
||||
cowsay -f art tux "$(uname -r)"
|
||||
fi
|
||||
}
|
||||
p_has
|
||||
}
|
||||
|
||||
_alias(){
|
||||
alias please="sudo"
|
||||
|
@ -514,6 +502,14 @@ _coding_() {
|
|||
|
||||
}
|
||||
fi
|
||||
|
||||
if command_exists bc; then
|
||||
math() {
|
||||
echo "$*" | bc -l
|
||||
}
|
||||
else
|
||||
echo_error "No bc, so no math will work"
|
||||
fi
|
||||
}
|
||||
|
||||
# ─< rsync >────────────────────────────────────────────────────────────────────────────────
|
||||
|
@ -603,14 +599,6 @@ _tools_(){
|
|||
fi
|
||||
}
|
||||
|
||||
if command_exists bc; then
|
||||
math() {
|
||||
echo "$*" | bc -l
|
||||
}
|
||||
else
|
||||
echo_error "No bc, so no math will work"
|
||||
fi
|
||||
|
||||
_environment(){
|
||||
if command_exists nvim; then
|
||||
export EDITOR="nvim"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue