feat: Removed .zsh and .zshrc
This commit is contained in:
53
.config/htop/htoprc
Normal file
53
.config/htop/htoprc
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
# Beware! This file is rewritten by htop when settings are changed in the interface.
|
||||||
|
# The parser is also very primitive, and not human-friendly.
|
||||||
|
htop_version=3.3.0
|
||||||
|
config_reader_min_version=3
|
||||||
|
fields=0 48 17 18 38 39 2 46 47 49 1
|
||||||
|
hide_kernel_threads=1
|
||||||
|
hide_userland_threads=0
|
||||||
|
hide_running_in_container=0
|
||||||
|
shadow_other_users=0
|
||||||
|
show_thread_names=0
|
||||||
|
show_program_path=1
|
||||||
|
highlight_base_name=0
|
||||||
|
highlight_deleted_exe=1
|
||||||
|
shadow_distribution_path_prefix=0
|
||||||
|
highlight_megabytes=1
|
||||||
|
highlight_threads=1
|
||||||
|
highlight_changes=0
|
||||||
|
highlight_changes_delay_secs=5
|
||||||
|
find_comm_in_cmdline=1
|
||||||
|
strip_exe_from_cmdline=1
|
||||||
|
show_merged_command=0
|
||||||
|
header_margin=1
|
||||||
|
screen_tabs=1
|
||||||
|
detailed_cpu_time=0
|
||||||
|
cpu_count_from_one=0
|
||||||
|
show_cpu_usage=1
|
||||||
|
show_cpu_frequency=0
|
||||||
|
update_process_names=0
|
||||||
|
account_guest_in_cpu_meter=0
|
||||||
|
color_scheme=0
|
||||||
|
enable_mouse=1
|
||||||
|
delay=15
|
||||||
|
hide_function_bar=0
|
||||||
|
header_layout=two_50_50
|
||||||
|
column_meters_0=LeftCPUs2 Memory Swap
|
||||||
|
column_meter_modes_0=1 1 1
|
||||||
|
column_meters_1=RightCPUs2 Tasks LoadAverage Uptime
|
||||||
|
column_meter_modes_1=1 2 2 2
|
||||||
|
tree_view=0
|
||||||
|
sort_key=46
|
||||||
|
tree_sort_key=0
|
||||||
|
sort_direction=-1
|
||||||
|
tree_sort_direction=1
|
||||||
|
tree_view_always_by_pid=0
|
||||||
|
all_branches_collapsed=0
|
||||||
|
screen:Main=PID USER PRIORITY NICE M_VIRT M_RESIDENT STATE PERCENT_CPU PERCENT_MEM TIME Command
|
||||||
|
.sort_key=PERCENT_CPU
|
||||||
|
.tree_sort_key=PID
|
||||||
|
.tree_view_always_by_pid=0
|
||||||
|
.tree_view=0
|
||||||
|
.sort_direction=-1
|
||||||
|
.tree_sort_direction=1
|
||||||
|
.all_branches_collapsed=0
|
||||||
@@ -1,23 +0,0 @@
|
|||||||
# Alias
|
|
||||||
# ---
|
|
||||||
#
|
|
||||||
# mac OS shortcuts
|
|
||||||
alias code="open -a 'Visual Studio Code'"
|
|
||||||
alias kubi="open -a 'Lens'"
|
|
||||||
|
|
||||||
|
|
||||||
# ALIAS COMMANDS
|
|
||||||
alias ld="ls -lisaGh"
|
|
||||||
alias g="goto"
|
|
||||||
alias grep='grep --color'
|
|
||||||
alias vim=nvim
|
|
||||||
alias update-system="brew update && brew upgrade && npm update -g"
|
|
||||||
alias do-st="docker compose"
|
|
||||||
alias do-re="docker compose down && docker compose up -d"
|
|
||||||
alias hetzi="ssh root@128.140.71.88"
|
|
||||||
# alias qaserv="ssh root@195.201.17.47"
|
|
||||||
# alias qaserv="ssh qaserver"
|
|
||||||
alias qaserv="TERM=xterm-256color ssh root@195.201.17.47"
|
|
||||||
alias kc1='export KUBECONFIG=~/.kube/config'
|
|
||||||
alias kc2='export KUBECONFIG=~/.kube/mobilistics'
|
|
||||||
alias ram='vm_stat'
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
# Colormap
|
|
||||||
function colormap() {
|
|
||||||
for i in {0..255}; do print -Pn "%K{$i} %k%F{$i}${(l:3::0:)i}%f " ${${(M)$((i%6)):#3}:+$'\n'}; done
|
|
||||||
}
|
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
autoload -Uz compinit
|
|
||||||
compinit
|
|
||||||
|
|
||||||
source $(brew --prefix)/etc/bash_completion.d/goto.sh
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
export KUBECONFIG=~/.kube/config
|
|
||||||
export KUBECONFIG=~/.kube/mobilistics
|
|
||||||
28
.zsh/nvm.zsh
28
.zsh/nvm.zsh
@@ -1,28 +0,0 @@
|
|||||||
export NVM_DIR="$HOME/.nvm"
|
|
||||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
||||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
|
||||||
|
|
||||||
# Add pnpm global bin to PATH
|
|
||||||
export PATH="$NVM_DIR/versions/node/$(nvm current)/bin:$PATH"
|
|
||||||
|
|
||||||
# Automatisches Laden der Node.js-Version
|
|
||||||
autoload -U add-zsh-hook
|
|
||||||
load-nvmrc() {
|
|
||||||
local node_version="$(nvm version)"
|
|
||||||
local nvmrc_path="$(nvm_find_nvmrc)"
|
|
||||||
|
|
||||||
if [ -n "$nvmrc_path" ]; then
|
|
||||||
local nvmrc_node_version=$(nvm version "$(cat "${nvmrc_path}")")
|
|
||||||
|
|
||||||
if [ "$nvmrc_node_version" = "N/A" ]; then
|
|
||||||
nvm install
|
|
||||||
elif [ "$nvmrc_node_version" != "$node_version" ]; then
|
|
||||||
nvm use
|
|
||||||
fi
|
|
||||||
elif [ "$node_version" != "$(nvm version default)" ]; then
|
|
||||||
echo "Reverting to nvm default version"
|
|
||||||
nvm use default
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
add-zsh-hook chpwd load-nvmrc
|
|
||||||
load-nvmrc
|
|
||||||
@@ -1,12 +0,0 @@
|
|||||||
#Confi
|
|
||||||
export ZSH="$HOME/.oh-my-zsh"
|
|
||||||
|
|
||||||
#Theme
|
|
||||||
# ZSH_THEME="bira"
|
|
||||||
|
|
||||||
#plugins
|
|
||||||
plugins=(git kubectl docker npm pip sudo macos zsh-autosuggestions command-not-found zsh-syntax-highlighting 1password)
|
|
||||||
|
|
||||||
#Source
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
|
||||||
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
# pnpm
|
|
||||||
export PNPM_HOME="/Users/r.kallinich/.nvm/versions/node/v20.15.0/bin"
|
|
||||||
case ":$PATH:" in
|
|
||||||
*":$PNPM_HOME:"*) ;;
|
|
||||||
*) export PATH="$PNPM_HOME:$PATH" ;;
|
|
||||||
esac
|
|
||||||
# pnpm end
|
|
||||||
10
.zsh/ssh.zsh
10
.zsh/ssh.zsh
@@ -1,10 +0,0 @@
|
|||||||
export "GPG_TTY=$(tty)"
|
|
||||||
export "SSH_AUTH_SOCK=${HOME}/.gnupg/S.gpg-agent.ssh"
|
|
||||||
|
|
||||||
gpgconf --launch gpg-agent
|
|
||||||
|
|
||||||
unset SSH_AGENT_PID
|
|
||||||
if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then
|
|
||||||
export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
@@ -1,86 +0,0 @@
|
|||||||
# find out which distribution we are running on
|
|
||||||
LFILE="/etc/*-release"
|
|
||||||
MFILE="/System/Library/CoreServices/SystemVersion.plist"
|
|
||||||
if [[ -f $LFILE ]]; then
|
|
||||||
_distro=$(awk '/^ID=/' /etc/*-release | awk -F'=' '{ print tolower($2) }')
|
|
||||||
elif [[ -f $MFILE ]]; then
|
|
||||||
_distro="macos"
|
|
||||||
|
|
||||||
# on mac os use the systemprofiler to determine the current model
|
|
||||||
_device=$(system_profiler SPHardwareDataType | awk '/Model Name/ {print $3,$4,$5,$6,$7}')
|
|
||||||
|
|
||||||
case $_device in
|
|
||||||
*MacBook*) DEVICE="";;
|
|
||||||
*) DEVICE="";;
|
|
||||||
esac
|
|
||||||
fi
|
|
||||||
|
|
||||||
# set an icon based on the distro
|
|
||||||
# make sure your font is compatible with https://github.com/lukas-w/font-logos
|
|
||||||
case $_distro in
|
|
||||||
*kali*) ICON="ﴣ";;
|
|
||||||
*arch*) ICON="";;
|
|
||||||
*debian*) ICON="";;
|
|
||||||
*raspbian*) ICON="";;
|
|
||||||
*ubuntu*) ICON="";;
|
|
||||||
*elementary*) ICON="";;
|
|
||||||
*fedora*) ICON="";;
|
|
||||||
*coreos*) ICON="";;
|
|
||||||
*gentoo*) ICON="";;
|
|
||||||
*mageia*) ICON="";;
|
|
||||||
*centos*) ICON="";;
|
|
||||||
*opensuse*|*tumbleweed*) ICON="";;
|
|
||||||
*sabayon*) ICON="";;
|
|
||||||
*slackware*) ICON="";;
|
|
||||||
*linuxmint*) ICON="";;
|
|
||||||
*alpine*) ICON="";;
|
|
||||||
*aosc*) ICON="";;
|
|
||||||
*nixos*) ICON="";;
|
|
||||||
*devuan*) ICON="";;
|
|
||||||
*manjaro*) ICON="";;
|
|
||||||
*rhel*) ICON="";;
|
|
||||||
*macos*) ICON="";;
|
|
||||||
*) ICON="";;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Kubernetes integration
|
|
||||||
function update_kubernetes_context() {
|
|
||||||
if command -v kubectl &> /dev/null; then
|
|
||||||
KUBE_CTX=$(kubectl config current-context 2>/dev/null)
|
|
||||||
if [ $? -eq 0 ]; then
|
|
||||||
KUBE_NS=$(kubectl config view --minify --output 'jsonpath={..namespace}' 2>/dev/null)
|
|
||||||
export STARSHIP_KUBERNETES_CONTEXT="$KUBE_CTX"
|
|
||||||
[ -n "$KUBE_NS" ] && export STARSHIP_KUBERNETES_NAMESPACE="$KUBE_NS"
|
|
||||||
else
|
|
||||||
unset STARSHIP_KUBERNETES_CONTEXT
|
|
||||||
unset STARSHIP_KUBERNETES_NAMESPACE
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Update kubernetes context on startup
|
|
||||||
update_kubernetes_context
|
|
||||||
|
|
||||||
# Function to wrap kubectl and update context when needed
|
|
||||||
function kubectl() {
|
|
||||||
command kubectl "$@"
|
|
||||||
local exit_code=$?
|
|
||||||
|
|
||||||
# Update context if the command was successful and changed the context or namespace
|
|
||||||
if [ $exit_code -eq 0 ] && [[ "$1" == "config" && ("$2" == "use-context" || "$2" == "set-context") ]]; then
|
|
||||||
update_kubernetes_context
|
|
||||||
fi
|
|
||||||
return $exit_code
|
|
||||||
}
|
|
||||||
|
|
||||||
# Kubernetes aliases
|
|
||||||
alias k='kubectl'
|
|
||||||
alias kgp='kubectl get pods'
|
|
||||||
alias kgn='kubectl get nodes'
|
|
||||||
alias kgs='kubectl get services'
|
|
||||||
alias kgc='kubectl config get-contexts'
|
|
||||||
alias kuc='kubectl config use-context'
|
|
||||||
alias kns='kubectl config set-context --current --namespace'
|
|
||||||
|
|
||||||
export STARSHIP_DISTRO="$ICON"
|
|
||||||
export STARSHIP_DEVICE="$DEVICE"
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
# Basis-Einstellungen für das Theme
|
|
||||||
autoload -Uz colors && colors
|
|
||||||
setopt PROMPT_SUBST
|
|
||||||
|
|
||||||
# Lade alle Theme-Komponenten
|
|
||||||
for theme_component (~/.zsh/theme/**/*.zsh); do
|
|
||||||
source $theme_component
|
|
||||||
done
|
|
||||||
@@ -1,20 +0,0 @@
|
|||||||
function ruby_prompt_info() {
|
|
||||||
if command -v rvm-prompt >/dev/null 2>&1; then
|
|
||||||
local ruby_version=$(rvm-prompt i v g)
|
|
||||||
if [[ -n "$ruby_version" ]]; then
|
|
||||||
echo "%F{red}‹${ruby_version}›%f"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function virtualenv_prompt_info() {
|
|
||||||
if [[ -n "$VIRTUAL_ENV" ]]; then
|
|
||||||
echo "%F{green}‹${VIRTUAL_ENV:t}›%f"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function conda_prompt_info() {
|
|
||||||
if [[ -n "$CONDA_DEFAULT_ENV" ]]; then
|
|
||||||
echo "%F{green}‹${CONDA_DEFAULT_ENV}›%f"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
@@ -1,11 +0,0 @@
|
|||||||
function git_prompt_info() {
|
|
||||||
if git rev-parse --git-dir > /dev/null 2>&1; then
|
|
||||||
local ref=$(git symbolic-ref HEAD 2>/dev/null)
|
|
||||||
local branch=${ref#refs/heads/}
|
|
||||||
if [[ -n "$(git status --porcelain 2>/dev/null)" ]]; then
|
|
||||||
echo "%F{yellow}‹${branch}%F{red}●%F{yellow}›%f"
|
|
||||||
else
|
|
||||||
echo "%F{yellow}‹${branch}›%f"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
@@ -1,10 +0,0 @@
|
|||||||
function hg_prompt_info() {
|
|
||||||
if hg root >/dev/null 2>&1; then
|
|
||||||
local branch=$(hg branch 2>/dev/null)
|
|
||||||
if [[ -n "$(hg status 2>/dev/null)" ]]; then
|
|
||||||
echo "%F{yellow}‹${branch}%F{red}●%F{yellow}›%f"
|
|
||||||
else
|
|
||||||
echo "%F{yellow}‹${branch}›%f"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
@@ -1,9 +0,0 @@
|
|||||||
function get_kubectl_context() {
|
|
||||||
if (( $+commands[kubectl] )); then
|
|
||||||
local context=$(kubectl config current-context 2>/dev/null)
|
|
||||||
local namespace=$(kubectl config view --minify --output 'jsonpath={..namespace}' 2>/dev/null)
|
|
||||||
if [[ -n "$context" ]]; then
|
|
||||||
echo "%F{blue}⎈ $context:$namespace%f"
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
@@ -1,41 +0,0 @@
|
|||||||
# Neue Funktionen für die Versionsinformationen
|
|
||||||
function get_node_version() {
|
|
||||||
if [[ -f package.json ]]; then
|
|
||||||
if [[ -f pnpm-lock.yaml ]]; then
|
|
||||||
echo "%F{magenta}‹pnpm $(pnpm --version)›%f "
|
|
||||||
elif [[ -f package-lock.json ]]; then
|
|
||||||
echo "%F{red}‹npm $(npm --version)›%f "
|
|
||||||
fi
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
function get_deno_version() {
|
|
||||||
if [[ -f deno.json || -f deno.jsonc ]]; then
|
|
||||||
echo "%F{green}‹deno $(deno --version | head -n1 | cut -d' ' -f2)›%f "
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# Aktualisierte Prompt-Funktion
|
|
||||||
function set_prompt() {
|
|
||||||
if [[ -n "$SSH_CONNECTION" ]]; then
|
|
||||||
local user_host="%B%F{yellow}server%f%b"
|
|
||||||
else
|
|
||||||
local user_host="%B%F{green}local%f%b"
|
|
||||||
fi
|
|
||||||
local user_symbol='%(!.#.$)'
|
|
||||||
local current_dir="%B%F{blue}%~%f%b "
|
|
||||||
|
|
||||||
local conda_info=$(conda_prompt_info)
|
|
||||||
local vcs_info="$(git_prompt_info)"
|
|
||||||
local ruby_info=$(ruby_prompt_info)
|
|
||||||
local venv_info=$(virtualenv_prompt_info)
|
|
||||||
local kube_info=$(get_kubectl_context)
|
|
||||||
local node_info=$(get_node_version)
|
|
||||||
local deno_info=$(get_deno_version)
|
|
||||||
|
|
||||||
PS1="▲ ${conda_info}${user_host}${current_dir}${node_info}${deno_info}${ruby_info}${vcs_info}${venv_info}${kube_info}
|
|
||||||
△ %B${user_symbol}%b "
|
|
||||||
|
|
||||||
RPROMPT="%B${return_code}%b"
|
|
||||||
}
|
|
||||||
precmd_functions+=(set_prompt)
|
|
||||||
@@ -1 +0,0 @@
|
|||||||
eval "$(zoxide init --cmd cd zsh)"
|
|
||||||
27
.zshrc
27
.zshrc
@@ -1,27 +0,0 @@
|
|||||||
export PATH="/opt/homebrew/bin:$PATH"
|
|
||||||
export PATH="$HOME/.cargo/bin:$PATH"
|
|
||||||
export NIX_PATH=$HOME/.nix-defexpr/channels:/nix/var/nix/profiles/per-user/root/channels${NIX_PATH:+:$NIX_PATH}
|
|
||||||
|
|
||||||
# config
|
|
||||||
PATH="/Library/Frameworks/Python.framework/Versions/3.5/bin:${PATH}"
|
|
||||||
|
|
||||||
export PATH
|
|
||||||
# [[ -f ~/.zsh/ohmyzsh.zsh ]] && source ~/.zsh/ohmyzsh.zsh
|
|
||||||
[[ -f ~/.zsh/starship.zsh ]] && source ~/.zsh/starship.zsh
|
|
||||||
[[ -f ~/.zsh/goto.zsh ]] && source ~/.zsh/goto.zsh
|
|
||||||
[[ -f ~/.zsh/nvm.zsh ]] && source ~/.zsh/nvm.zsh
|
|
||||||
[[ -f ~/.zsh/pnpm.zsh ]] && source ~/.zsh/pnpm.zsh
|
|
||||||
[[ -f ~/.zsh/zoxide.zsh ]] && source ~/.zsh/zoxide.zsh
|
|
||||||
[[ -f ~/.zsh/aliases.zsh ]] && source ~/.zsh/aliases.zsh
|
|
||||||
[[ -f ~/.zsh/ssh.zsh ]] && source ~/.zsh/ssh.zsh
|
|
||||||
[[ -f ~/.zsh/kubernetes.zsh ]] && source ~/.zsh/kubernetes.zsh
|
|
||||||
# [[ -f ~/.zsh/theme.zsh ]] && source ~/.zsh/theme.zsh
|
|
||||||
|
|
||||||
eval "$(starship init zsh)"
|
|
||||||
|
|
||||||
#loading neofetch
|
|
||||||
neofetch
|
|
||||||
|
|
||||||
|
|
||||||
# Load Angular CLI autocompletion.
|
|
||||||
source <(ng completion script)
|
|
||||||
@@ -25,7 +25,8 @@ Meine persönliche Development-Umgebung optimiert für:
|
|||||||
- **Formatting**: Conform (Prettier, Black, gofumpt)
|
- **Formatting**: Conform (Prettier, Black, gofumpt)
|
||||||
|
|
||||||
### System Monitoring
|
### System Monitoring
|
||||||
- **btop** - Ressourcen-Monitor
|
- **btop** - Ressourcen-Monitor (Primary)
|
||||||
|
- **htop** - Fallback Monitor (wenn btop abstürzt)
|
||||||
- **neofetch** - System Info
|
- **neofetch** - System Info
|
||||||
- **yabai** - Tiling Window Manager (macOS)
|
- **yabai** - Tiling Window Manager (macOS)
|
||||||
|
|
||||||
@@ -83,12 +84,11 @@ dotfiles/
|
|||||||
│ │ │ ├── core/ # Options, keymaps, lazy.nvim
|
│ │ │ ├── core/ # Options, keymaps, lazy.nvim
|
||||||
│ │ │ └── plugins/ # Plugin configs (modular!)
|
│ │ │ └── plugins/ # Plugin configs (modular!)
|
||||||
│ │ └── init.lua # Entry point
|
│ │ └── init.lua # Entry point
|
||||||
│ ├── btop/ # System monitor config
|
│ ├── btop/ # System monitor config (primary)
|
||||||
|
│ ├── htop/ # System monitor fallback
|
||||||
│ ├── neofetch/ # System info config
|
│ ├── neofetch/ # System info config
|
||||||
│ ├── yabai/ # Window manager (macOS)
|
│ ├── yabai/ # Window manager (macOS)
|
||||||
│ └── starship.toml # Prompt config
|
│ └── starship.toml # Prompt config
|
||||||
├── .zsh/ # Zsh configs (optional)
|
|
||||||
├── .zshrc # Zsh config
|
|
||||||
├── install.sh # Automated setup
|
├── install.sh # Automated setup
|
||||||
└── README.md # This file
|
└── README.md # This file
|
||||||
```
|
```
|
||||||
|
|||||||
13
install.sh
13
install.sh
@@ -141,9 +141,9 @@ backup_configs() {
|
|||||||
[ -d ~/.config/nvim ] && cp -r ~/.config/nvim "$BACKUP_DIR/"
|
[ -d ~/.config/nvim ] && cp -r ~/.config/nvim "$BACKUP_DIR/"
|
||||||
[ -d ~/.config/neofetch ] && cp -r ~/.config/neofetch "$BACKUP_DIR/"
|
[ -d ~/.config/neofetch ] && cp -r ~/.config/neofetch "$BACKUP_DIR/"
|
||||||
[ -d ~/.config/btop ] && cp -r ~/.config/btop "$BACKUP_DIR/"
|
[ -d ~/.config/btop ] && cp -r ~/.config/btop "$BACKUP_DIR/"
|
||||||
|
[ -d ~/.config/htop ] && cp -r ~/.config/htop "$BACKUP_DIR/"
|
||||||
[ -d ~/.config/yabai ] && cp -r ~/.config/yabai "$BACKUP_DIR/"
|
[ -d ~/.config/yabai ] && cp -r ~/.config/yabai "$BACKUP_DIR/"
|
||||||
[ -f ~/.config/starship.toml ] && cp ~/.config/starship.toml "$BACKUP_DIR/"
|
[ -f ~/.config/starship.toml ] && cp ~/.config/starship.toml "$BACKUP_DIR/"
|
||||||
[ -f ~/.zshrc ] && cp ~/.zshrc "$BACKUP_DIR/"
|
|
||||||
|
|
||||||
log "Backup created: $BACKUP_DIR"
|
log "Backup created: $BACKUP_DIR"
|
||||||
}
|
}
|
||||||
@@ -326,17 +326,18 @@ setup_other_configs() {
|
|||||||
[ -d "$DOTFILES_DIR/.config/btop/themes" ] && ln -sf "$DOTFILES_DIR/.config/btop/themes" ~/.config/btop/themes
|
[ -d "$DOTFILES_DIR/.config/btop/themes" ] && ln -sf "$DOTFILES_DIR/.config/btop/themes" ~/.config/btop/themes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Htop (fallback wenn btop abstürzt)
|
||||||
|
if [ -d "$DOTFILES_DIR/.config/htop" ]; then
|
||||||
|
mkdir -p ~/.config/htop
|
||||||
|
ln -sf "$DOTFILES_DIR/.config/htop/htoprc" ~/.config/htop/htoprc
|
||||||
|
fi
|
||||||
|
|
||||||
# Yabai (macOS only)
|
# Yabai (macOS only)
|
||||||
if [ "$OS" = "macos" ] && [ -d "$DOTFILES_DIR/.config/yabai" ]; then
|
if [ "$OS" = "macos" ] && [ -d "$DOTFILES_DIR/.config/yabai" ]; then
|
||||||
rm -rf ~/.config/yabai
|
rm -rf ~/.config/yabai
|
||||||
ln -sf "$DOTFILES_DIR/.config/yabai" ~/.config/yabai
|
ln -sf "$DOTFILES_DIR/.config/yabai" ~/.config/yabai
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Zsh (if exists)
|
|
||||||
if [ -f "$DOTFILES_DIR/.zshrc" ]; then
|
|
||||||
ln -sf "$DOTFILES_DIR/.zshrc" ~/.zshrc
|
|
||||||
fi
|
|
||||||
|
|
||||||
log "Configurations symlinked!"
|
log "Configurations symlinked!"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user