addet yazi 'y' function
This commit is contained in:
parent
2ef1ba0f33
commit
24ec2d6925
1 changed files with 172 additions and 164 deletions
322
.zshrc
322
.zshrc
|
@ -10,52 +10,52 @@ NC='\033[0m' # No Color
|
||||||
# Message storage
|
# Message storage
|
||||||
typeset -A _MESSAGES
|
typeset -A _MESSAGES
|
||||||
_MESSAGES=(
|
_MESSAGES=(
|
||||||
[error]=""
|
[error]=""
|
||||||
[warn]=""
|
[warn]=""
|
||||||
[info]=""
|
[info]=""
|
||||||
)
|
)
|
||||||
|
|
||||||
# Logging functions with emojis
|
# Logging functions with emojis
|
||||||
echo_error() {
|
echo_error() {
|
||||||
local msg="${RED}❌ $1${NC}\n"
|
local msg="${RED}❌ $1${NC}\n"
|
||||||
printf "$msg" >&2
|
printf "$msg" >&2
|
||||||
_MESSAGES[error]+="$msg"
|
_MESSAGES[error]+="$msg"
|
||||||
}
|
}
|
||||||
|
|
||||||
echo_warning() {
|
echo_warning() {
|
||||||
local msg="${YELLOW}⚠️ $1${NC}\n"
|
local msg="${YELLOW}⚠️ $1${NC}\n"
|
||||||
printf "$msg"
|
printf "$msg"
|
||||||
_MESSAGES[warn]+="$msg"
|
_MESSAGES[warn]+="$msg"
|
||||||
}
|
}
|
||||||
|
|
||||||
echo_info() {
|
echo_info() {
|
||||||
local msg="${CYAN}ℹ️ $1${NC}\n"
|
local msg="${CYAN}ℹ️ $1${NC}\n"
|
||||||
printf "$msg"
|
printf "$msg"
|
||||||
_MESSAGES[info]+="$msg"
|
_MESSAGES[info]+="$msg"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Display stored messages
|
# Display stored messages
|
||||||
error_log() {
|
error_log() {
|
||||||
[[ -z "${_MESSAGES[error]}${_MESSAGES[warn]}${_MESSAGES[info]}" ]] && return 0
|
[[ -z "${_MESSAGES[error]}${_MESSAGES[warn]}${_MESSAGES[info]}" ]] && return 0
|
||||||
|
|
||||||
typeset -A headers colors
|
typeset -A headers colors
|
||||||
headers=(
|
headers=(
|
||||||
error "❌ Errors"
|
error "❌ Errors"
|
||||||
warn "⚠️ Warnings"
|
warn "⚠️ Warnings"
|
||||||
info "ℹ️ Info"
|
info "ℹ️ Info"
|
||||||
)
|
)
|
||||||
colors=(
|
colors=(
|
||||||
error "$RED"
|
error "$RED"
|
||||||
warn "$YELLOW"
|
warn "$YELLOW"
|
||||||
info "$CYAN"
|
info "$CYAN"
|
||||||
)
|
)
|
||||||
|
|
||||||
for type in error warn info; do
|
for type in error warn info; do
|
||||||
[[ -n "${_MESSAGES[$type]}" ]] && {
|
[[ -n "${_MESSAGES[$type]}" ]] && {
|
||||||
printf "\n${BOLD}${colors[$type]}=== ${headers[$type]} ===${NC}\n"
|
printf "\n${BOLD}${colors[$type]}=== ${headers[$type]} ===${NC}\n"
|
||||||
printf "${_MESSAGES[$type]}"
|
printf "${_MESSAGES[$type]}"
|
||||||
}
|
}
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# ─< Check if the given command exists silently >─────────────────────────────────────────
|
# ─< Check if the given command exists silently >─────────────────────────────────────────
|
||||||
|
@ -119,7 +119,7 @@ HISTDUP=erase
|
||||||
# Completion styling
|
# Completion styling
|
||||||
zstyle :compinstall filename "$HOME/.zshrc"
|
zstyle :compinstall filename "$HOME/.zshrc"
|
||||||
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
zstyle ':completion:*' matcher-list 'm:{a-z}={A-Za-z}'
|
||||||
zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
# zstyle ':completion:*' list-colors "${(s.:.)LS_COLORS}"
|
||||||
zstyle ':completion:*' menu no
|
zstyle ':completion:*' menu no
|
||||||
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
|
zstyle ':fzf-tab:complete:cd:*' fzf-preview 'ls --color $realpath'
|
||||||
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
|
zstyle ':fzf-tab:complete:__zoxide_z:*' fzf-preview 'ls --color $realpath'
|
||||||
|
@ -131,7 +131,7 @@ if command_exists fzf; then
|
||||||
source <(fzf --zsh)
|
source <(fzf --zsh)
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_init (){
|
_init() {
|
||||||
if command_exists oh-my-posh; then
|
if command_exists oh-my-posh; then
|
||||||
# eval "$(oh-my-posh init zsh --config 'https://git.k4li.de/dotfiles/oh-my-posh/raw/branch/main/amro.toml')"
|
# eval "$(oh-my-posh init zsh --config 'https://git.k4li.de/dotfiles/oh-my-posh/raw/branch/main/amro.toml')"
|
||||||
# eval "$(oh-my-posh init zsh --config '~/.zsh/themes/sim-web.toml')"
|
# eval "$(oh-my-posh init zsh --config '~/.zsh/themes/sim-web.toml')"
|
||||||
|
@ -146,7 +146,7 @@ _init (){
|
||||||
eval "$(zoxide init zsh --cmd cd)"
|
eval "$(zoxide init zsh --cmd cd)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ─< environment variables for zsh >──────────────────────────────────────────────────────
|
# ─< environment variables for zsh >──────────────────────────────────────────────────────
|
||||||
local zplug="$HOME/.zsh/plugins"
|
local zplug="$HOME/.zsh/plugins"
|
||||||
|
|
||||||
local zFzfCd="$zplug/custom/zsh-interactive-cd.plugin.zsh"
|
local zFzfCd="$zplug/custom/zsh-interactive-cd.plugin.zsh"
|
||||||
|
@ -161,34 +161,34 @@ _init (){
|
||||||
local zExtraction="$zplug/extract/extract.plugin.zsh"
|
local zExtraction="$zplug/extract/extract.plugin.zsh"
|
||||||
|
|
||||||
local _pluginlist=(
|
local _pluginlist=(
|
||||||
"$zAutosg"
|
"$zAutosg"
|
||||||
"$zSynthl"
|
"$zSynthl"
|
||||||
"$zTruecolor"
|
"$zTruecolor"
|
||||||
"$zAutopairs"
|
"$zAutopairs"
|
||||||
"$zFzf"
|
"$zFzf"
|
||||||
"$zFzfCd"
|
"$zFzfCd"
|
||||||
"$zAgentManagement"
|
"$zAgentManagement"
|
||||||
"$zCommandNotFound"
|
"$zCommandNotFound"
|
||||||
"$zExtraction"
|
"$zExtraction"
|
||||||
)
|
)
|
||||||
|
|
||||||
DEBUG_PLUG=""
|
DEBUG_PLUG=""
|
||||||
|
|
||||||
# ─< init plugis >────────────────────────────────────────────────────────────────────────
|
# ─< init plugis >────────────────────────────────────────────────────────────────────────
|
||||||
for zPlug in "${_pluginlist[@]}"; do
|
for zPlug in "${_pluginlist[@]}"; do
|
||||||
[[ -f "$zPlug" ]] &&
|
[[ -f "$zPlug" ]] &&
|
||||||
. $zPlug
|
. $zPlug
|
||||||
DEBUG_PLUG="$DEBUG_PLUG
|
DEBUG_PLUG="$DEBUG_PLUG
|
||||||
plugin $zPlug loadet."
|
plugin $zPlug loadet."
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
_alias(){
|
_alias() {
|
||||||
alias please="sudo"
|
alias please="sudo"
|
||||||
|
|
||||||
# ─< easier dir up >────────────────────────────────────────────────────────────────────────
|
# ─< easier dir up >────────────────────────────────────────────────────────────────────────
|
||||||
alias ..="cd .."
|
alias ..="cd .."
|
||||||
# ─< weather >──────────────────────────────────────────────────────────────────────────────
|
# ─< weather >──────────────────────────────────────────────────────────────────────────────
|
||||||
alias www="curl wttr.in/Ulm"
|
alias www="curl wttr.in/Ulm"
|
||||||
|
|
||||||
# ─< colored ip >───────────────────────────────────────────────────────────────────
|
# ─< colored ip >───────────────────────────────────────────────────────────────────
|
||||||
|
@ -214,10 +214,18 @@ _alias(){
|
||||||
alias lazygit="$HOME/go/bin/lazygit" &&
|
alias lazygit="$HOME/go/bin/lazygit" &&
|
||||||
alias lg="lazygit"
|
alias lg="lazygit"
|
||||||
|
|
||||||
# ─< cli explorer >───────────────────────────────────────────────────────────────────────
|
# ─< cli explorer >───────────────────────────────────────────────────────────────────────
|
||||||
if command_exists yazi; then
|
if command_exists yazi; then
|
||||||
echo_info "yazi is the explorer of choise"
|
echo_info "yazi is the explorer of choise"
|
||||||
alias lf="yazi || ya pack -i"
|
alias lf="yazi || ya pack -i"
|
||||||
|
function y() {
|
||||||
|
local tmp="$(mktemp -t "yazi-cwd.XXXXXX")" cwd
|
||||||
|
yazi "$@" --cwd-file="$tmp"
|
||||||
|
if cwd="$(command cat -- "$tmp")" && [ -n "$cwd" ] && [ "$cwd" != "$PWD" ]; then
|
||||||
|
builtin cd -- "$cwd"
|
||||||
|
fi
|
||||||
|
rm -f -- "$tmp"
|
||||||
|
}
|
||||||
elif command_exists ranger; then
|
elif command_exists ranger; then
|
||||||
echo_info "ranger is the explorer of choise"
|
echo_info "ranger is the explorer of choise"
|
||||||
alias lf="ranger"
|
alias lf="ranger"
|
||||||
|
@ -279,7 +287,7 @@ _alias(){
|
||||||
alias ts="tmux source $HOME/.tmux.conf"
|
alias ts="tmux source $HOME/.tmux.conf"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ─< v stands vor virtual-machine (kvm) >─────────────────────────────────────────────────
|
# ─< v stands vor virtual-machine (kvm) >─────────────────────────────────────────────────
|
||||||
if command_exists virsh; then
|
if command_exists virsh; then
|
||||||
alias vm="virsh"
|
alias vm="virsh"
|
||||||
alias vms="virsh start"
|
alias vms="virsh start"
|
||||||
|
@ -287,7 +295,7 @@ _alias(){
|
||||||
alias vmsd="virsh shutdown"
|
alias vmsd="virsh shutdown"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ─< t stands for trash(-cli) >───────────────────────────────────────────────────────────────
|
# ─< t stands for trash(-cli) >───────────────────────────────────────────────────────────────
|
||||||
if command_exists trash; then
|
if command_exists trash; then
|
||||||
alias rm="trash"
|
alias rm="trash"
|
||||||
alias t="trash"
|
alias t="trash"
|
||||||
|
@ -346,58 +354,58 @@ _alias(){
|
||||||
alias dl="docker compose logs -f"
|
alias dl="docker compose logs -f"
|
||||||
alias dc="docker compose"
|
alias dc="docker compose"
|
||||||
alias appupdate="docker compose pull && docker compose up -d --force-recreate"
|
alias appupdate="docker compose pull && docker compose up -d --force-recreate"
|
||||||
drweb() {
|
drweb() {
|
||||||
drweb_help() {
|
drweb_help() {
|
||||||
echo "Usage: drweb <server_type> [directory] [port]"
|
echo "Usage: drweb <server_type> [directory] [port]"
|
||||||
echo " server_type: Type of server to use (nginx or php)"
|
echo " server_type: Type of server to use (nginx or php)"
|
||||||
echo " directory: Directory to serve (default: current directory)"
|
echo " directory: Directory to serve (default: current directory)"
|
||||||
echo " port: Port to use (default: 8080)"
|
echo " port: Port to use (default: 8080)"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if [[ "$1" == "--help" || "$1" == "-h" ]]; then
|
if [[ "$1" == "--help" || "$1" == "-h" ]]; then
|
||||||
drweb_help
|
drweb_help
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local server_type="$1"
|
local server_type="$1"
|
||||||
local dir="${2:-./}"
|
local dir="${2:-./}"
|
||||||
local port="${3:-8080}"
|
local port="${3:-8080}"
|
||||||
|
|
||||||
if [[ ! -d "$dir" ]]; then
|
if [[ ! -d "$dir" ]]; then
|
||||||
echo "Error: Directory $dir does not exist"
|
echo "Error: Directory $dir does not exist"
|
||||||
drweb_help
|
drweb_help
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$server_type" in
|
case "$server_type" in
|
||||||
nginx)
|
nginx)
|
||||||
if [[ -f "$dir/index.html" || -f "$dir/index.php" ]]; then
|
if [[ -f "$dir/index.html" || -f "$dir/index.php" ]]; then
|
||||||
docker run -p "$port:80" -v "$dir:/usr/share/nginx/html:ro" nginx:alpine
|
docker run -p "$port:80" -v "$dir:/usr/share/nginx/html:ro" nginx:alpine
|
||||||
echo "Nginx is serving $dir on port $port"
|
echo "Nginx is serving $dir on port $port"
|
||||||
else
|
else
|
||||||
echo "Error: No index.html or index.php found in $dir"
|
echo "Error: No index.html or index.php found in $dir"
|
||||||
drweb_help
|
drweb_help
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
php)
|
php)
|
||||||
if [[ -f "$dir/index.php" || -f "$dir/index.html" ]]; then
|
if [[ -f "$dir/index.php" || -f "$dir/index.html" ]]; then
|
||||||
docker run -p "$port:80" -v "$dir:/var/www/html" php:7.4-apache
|
docker run -p "$port:80" -v "$dir:/var/www/html" php:7.4-apache
|
||||||
echo "PHP Apache is serving $dir on port $port"
|
echo "PHP Apache is serving $dir on port $port"
|
||||||
else
|
else
|
||||||
echo "Error: No index.php or index.html found in $dir"
|
echo "Error: No index.php or index.html found in $dir"
|
||||||
drweb_help
|
drweb_help
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Error: Unsupported server type '$server_type'"
|
echo "Error: Unsupported server type '$server_type'"
|
||||||
drweb_help
|
drweb_help
|
||||||
return 1
|
return 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ─< g stands for GIT >─────────────────────────────────────────────────────────────────────
|
# ─< g stands for GIT >─────────────────────────────────────────────────────────────────────
|
||||||
|
@ -459,7 +467,7 @@ _coding_() {
|
||||||
export EDITOR="codium"
|
export EDITOR="codium"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ─< neovide, the best frontend for any neovim-config >───────────────────────────────────
|
# ─< neovide, the best frontend for any neovim-config >───────────────────────────────────
|
||||||
if command_exists nvim; then
|
if command_exists nvim; then
|
||||||
if command_exists neovide; then
|
if command_exists neovide; then
|
||||||
if [ -n "$TMUX" ]; then
|
if [ -n "$TMUX" ]; then
|
||||||
|
@ -486,22 +494,22 @@ _coding_() {
|
||||||
|
|
||||||
# Check if npm is available, then create the alias
|
# Check if npm is available, then create the alias
|
||||||
if command_exists npm; then
|
if command_exists npm; then
|
||||||
npmrun(){
|
npmrun() {
|
||||||
npmrun_help() {
|
npmrun_help() {
|
||||||
echo "Usage: npmrun [environment] [optional:port]"
|
echo "Usage: npmrun [environment] [optional:port]"
|
||||||
echo " environment: The npm environment you want to run (e.g. dev)"
|
echo " environment: The npm environment you want to run (e.g. dev)"
|
||||||
echo " port: Port to use (default: 8000)"
|
echo " port: Port to use (default: 8000)"
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if [[ "$1" == "--help" || "$1" == "-h" ]]; then
|
if [[ "$1" == "--help" || "$1" == "-h" ]]; then
|
||||||
npmrun_help
|
npmrun_help
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local env="$1"
|
local env="$1"
|
||||||
local port="${2:-8080}"
|
local port="${2:-8080}"
|
||||||
|
|
||||||
npm run "$env" -- --host="$(get_ip)" --port="$port"
|
npm run "$env" -- --host="$(get_ip)" --port="$port"
|
||||||
|
|
||||||
}
|
}
|
||||||
fi
|
fi
|
||||||
|
@ -524,68 +532,68 @@ fi
|
||||||
get_packager() {
|
get_packager() {
|
||||||
. /etc/os-release
|
. /etc/os-release
|
||||||
case "$ID" in
|
case "$ID" in
|
||||||
# Debian-based
|
# Debian-based
|
||||||
ubuntu|debian|pop|kali|zorin)
|
ubuntu | debian | pop | kali | zorin)
|
||||||
if command_exists nala; then
|
if command_exists nala; then
|
||||||
alias search="nala search"
|
alias search="nala search"
|
||||||
alias install="$_sudo nala install --assume-yes"
|
alias install="$_sudo nala install --assume-yes"
|
||||||
alias update="$_sudo nala update && $_sudo nala upgrade --full"
|
alias update="$_sudo nala update && $_sudo nala upgrade --full"
|
||||||
alias remove="$_sudo nala purge"
|
alias remove="$_sudo nala purge"
|
||||||
else
|
else
|
||||||
alias search="apt-cache search"
|
alias search="apt-cache search"
|
||||||
alias install="$_sudo apt-get install --yes"
|
alias install="$_sudo apt-get install --yes"
|
||||||
alias update="$_sudo apt-get update && $_sudo apt-get upgrade"
|
alias update="$_sudo apt-get update && $_sudo apt-get upgrade"
|
||||||
alias remove="$_sudo apt-get purge"
|
alias remove="$_sudo apt-get purge"
|
||||||
fi
|
fi
|
||||||
alias unbreak="$_sudo dpkg --configure -a"
|
alias unbreak="$_sudo dpkg --configure -a"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Arch-based
|
# Arch-based
|
||||||
arch|manjaro|endevouros|garuda)
|
arch | manjaro | endevouros | garuda)
|
||||||
if command_exists paru; then
|
if command_exists paru; then
|
||||||
alias search="paru -Ss"
|
alias search="paru -Ss"
|
||||||
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"
|
||||||
elif command_exists yay; then
|
elif command_exists yay; then
|
||||||
alias search="yay -Ss"
|
alias search="yay -Ss"
|
||||||
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"
|
||||||
else
|
else
|
||||||
alias search="$_sudo pacman -Ss"
|
alias search="$_sudo pacman -Ss"
|
||||||
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"
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# RHEL-based
|
# RHEL-based
|
||||||
fedora|centos)
|
fedora | centos)
|
||||||
alias search="dnf search"
|
alias search="dnf search"
|
||||||
alias install="$_sudo dnf install --yes"
|
alias install="$_sudo dnf install --yes"
|
||||||
alias update="$_sudo dnf update"
|
alias update="$_sudo dnf update"
|
||||||
alias remove="$_sudo dnf remove"
|
alias remove="$_sudo dnf remove"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# openSUSE
|
# openSUSE
|
||||||
opensuse-*)
|
opensuse-*)
|
||||||
alias search="zypper search"
|
alias search="zypper search"
|
||||||
alias install="$_sudo zypper install --no-confirm"
|
alias install="$_sudo zypper install --no-confirm"
|
||||||
alias update="$_sudo zypper update"
|
alias update="$_sudo zypper update"
|
||||||
alias remove="$_sudo zypper remove"
|
alias remove="$_sudo zypper remove"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
# Alpine
|
# Alpine
|
||||||
alpine)
|
alpine)
|
||||||
alias install="$_sudo apk add"
|
alias install="$_sudo apk add"
|
||||||
alias update="$_sudo apk update && $_sudo apk upgrade"
|
alias update="$_sudo apk update && $_sudo apk upgrade"
|
||||||
alias remove="$_sudo apk del"
|
alias remove="$_sudo apk del"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
_tools_(){
|
_tools_() {
|
||||||
if ! command_exists has; then
|
if ! command_exists has; then
|
||||||
$(git clone https://github.com/kdabir/has.git /tmp/has && cd /tmp/has && sudo make install && rm -rf /tmp/has)
|
$(git clone https://github.com/kdabir/has.git /tmp/has && cd /tmp/has && sudo make install && rm -rf /tmp/has)
|
||||||
else
|
else
|
||||||
|
@ -596,7 +604,7 @@ _tools_(){
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
_environment(){
|
_environment() {
|
||||||
if command_exists nvim; then
|
if command_exists nvim; then
|
||||||
export EDITOR="nvim"
|
export EDITOR="nvim"
|
||||||
fi
|
fi
|
||||||
|
@ -605,7 +613,7 @@ _environment(){
|
||||||
export RANGER_LOAD_DEFAULT_RC="FALSE"
|
export RANGER_LOAD_DEFAULT_RC="FALSE"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# ─< paths >──────────────────────────────────────────────────────────────────────────────
|
# ─< paths >──────────────────────────────────────────────────────────────────────────────
|
||||||
if [ -d "$HOME/.local/bin" ]; then
|
if [ -d "$HOME/.local/bin" ]; then
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
if [ -e "$HOME/.local/bin/lazydocker" ]; then
|
if [ -e "$HOME/.local/bin/lazydocker" ]; then
|
||||||
|
@ -625,7 +633,7 @@ _environment(){
|
||||||
[ -d "$HOME/.zsh/plugins/fzf-zsh-plugin/bin" ] && export PATH="$HOME/.zsh/plugins/fzf-zsh-plugin/bin:$PATH"
|
[ -d "$HOME/.zsh/plugins/fzf-zsh-plugin/bin" ] && export PATH="$HOME/.zsh/plugins/fzf-zsh-plugin/bin:$PATH"
|
||||||
}
|
}
|
||||||
|
|
||||||
_end(){
|
_end() {
|
||||||
if command_exists fastfetch; then
|
if command_exists fastfetch; then
|
||||||
clear &&
|
clear &&
|
||||||
fastfetch
|
fastfetch
|
||||||
|
@ -639,7 +647,7 @@ _end(){
|
||||||
error_log
|
error_log
|
||||||
}
|
}
|
||||||
|
|
||||||
main(){
|
main() {
|
||||||
get_packager
|
get_packager
|
||||||
_init
|
_init
|
||||||
_environment
|
_environment
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue