From dacae97a98d592ea7c5aa7b941c49af4b23fd3f1 Mon Sep 17 00:00:00 2001 From: frosty Date: Sun, 25 Aug 2024 01:50:41 -0400 Subject: [PATCH] zsh: delete --- .gitmodules | 9 --- .local/share/zsh/plugins/zsh-autosuggestions | 1 - .../share/zsh/plugins/zsh-fzf-history-search | 1 - .../share/zsh/plugins/zsh-syntax-highlighting | 1 - .zprofile | 45 ------------ .zshrc | 72 ------------------- 6 files changed, 129 deletions(-) delete mode 160000 .local/share/zsh/plugins/zsh-autosuggestions delete mode 160000 .local/share/zsh/plugins/zsh-fzf-history-search delete mode 160000 .local/share/zsh/plugins/zsh-syntax-highlighting delete mode 100644 .zprofile delete mode 100644 .zshrc diff --git a/.gitmodules b/.gitmodules index c1f3b2a..a17420e 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,12 +1,3 @@ -[submodule ".local/share/zsh/plugins/zsh-syntax-highlighting"] - path = .local/share/zsh/plugins/zsh-syntax-highlighting - url = https://github.com/zsh-users/zsh-syntax-highlighting.git -[submodule ".local/share/zsh/plugins/zsh-autosuggestions"] - path = .local/share/zsh/plugins/zsh-autosuggestions - url = https://github.com/zsh-users/zsh-autosuggestions.git -[submodule ".local/share/zsh/plugins/zsh-fzf-history-search"] - path = .local/share/zsh/plugins/zsh-fzf-history-search - url = https://github.com/joshskidmore/zsh-fzf-history-search.git [submodule ".config/nvim"] path = .config/nvim url = https://codeberg.org/frosty/init.lua.git diff --git a/.local/share/zsh/plugins/zsh-autosuggestions b/.local/share/zsh/plugins/zsh-autosuggestions deleted file mode 160000 index c3d4e57..0000000 --- a/.local/share/zsh/plugins/zsh-autosuggestions +++ /dev/null @@ -1 +0,0 @@ -Subproject commit c3d4e576c9c86eac62884bd47c01f6faed043fc5 diff --git a/.local/share/zsh/plugins/zsh-fzf-history-search b/.local/share/zsh/plugins/zsh-fzf-history-search deleted file mode 160000 index d5a9730..0000000 --- a/.local/share/zsh/plugins/zsh-fzf-history-search +++ /dev/null @@ -1 +0,0 @@ -Subproject commit d5a9730b5b4cb0b39959f7f1044f9c52743832ba diff --git a/.local/share/zsh/plugins/zsh-syntax-highlighting b/.local/share/zsh/plugins/zsh-syntax-highlighting deleted file mode 160000 index e0165ea..0000000 --- a/.local/share/zsh/plugins/zsh-syntax-highlighting +++ /dev/null @@ -1 +0,0 @@ -Subproject commit e0165eaa730dd0fa321a6a6de74f092fe87630b0 diff --git a/.zprofile b/.zprofile deleted file mode 100644 index a235e78..0000000 --- a/.zprofile +++ /dev/null @@ -1,45 +0,0 @@ -# shellcheck shell=sh disable=SC1091 - -[ -f "$HOME/.zshrc" ] && . "$HOME/.zshrc" - -# XDG base directories -export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}" -export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" -export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}" -export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}" - -# Default programs -export TERMINAL="${TERMINAL:-st}" -export EDITOR="${EDITOR:-nvim}" -export BROWSER="${BROWSER:-firefox}" - -# $HOME cleanup -export HISTFILE="$XDG_STATE_HOME/zsh/history" -export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" -export XCURSOR_PATH="/usr/share/icons:$XDG_DATA_HOME/icons" -export GNUPGHOME="$XDG_DATA_HOME/gnupg" -export GOPATH="$XDG_DATA_HOME/go" -export RUSTUP_HOME="$XDG_DATA_HOME/rustup" -export CARGO_HOME="$XDG_DATA_HOME/cargo" -export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" -export NODE_REPL_HISTORY="$XDG_DATA_HOME/node_repl_history" -export CUDA_CACHE_PATH="$XDG_CACHE_HOME/nv" - -# Other program settings -export SVDIR="$XDG_CONFIG_HOME/service" -export PIPX_BIN_DIR="$XDG_DATA_HOME/pipx/bin" -export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_CONFIG_HOME/java" -export XIDLEHOOK_SOCK="$XDG_STATE_HOME/xidlehook.sock" - -# $PATH additions -export PATH="$PATH:$HOME/.local/bin" -export PATH="$PATH:$HOME/.local/bin/screenlayouts" -export PATH="$PATH:$HOME/.ghcup/bin" -export PATH="$PATH:$HOME/.cabal/bin" -export PATH="$PATH:$PIPX_BIN_DIR" -export PATH="$PATH:$GOPATH/bin" -export PATH="$PATH:$CARGO_HOME/bin" -export PATH="$PATH:$XDG_DATA_HOME/npm/bin" - -# Automatic graphical start on tty1 -[ "$(tty)" = "/dev/tty1" ] && ! pidof -s Xorg >/dev/null 2>&1 && exec startx diff --git a/.zshrc b/.zshrc deleted file mode 100644 index dc3042f..0000000 --- a/.zshrc +++ /dev/null @@ -1,72 +0,0 @@ -case "$-" in -*i*) ;; -*) return ;; -esac - -# Completion options -autoload -Uz compinit && compinit -d "$XDG_CACHE_HOME/zsh/zcompdump" -zstyle ':completion:*' completer _expand_alias _complete _ignored - -## History options ## -HISTSIZE=100000 -HISTFILESIZE="$HISTSIZE" - -setopt autocd -setopt promptsubst - -# Default options -alias cp='cp -iv' -alias mv='mv -iv' -alias rm='rm -vI' -alias mkdir='mkdir -pv' -alias ls='ls --color=auto -AF' -alias grep='grep --color=auto' -alias wget='wget --no-hsts-file' -cd() { - builtin cd "$@" && ls -} - -# Public and private IP addresses -alias ipp='curl https://ipinfo.io/ip && echo' -alias ipl='monitors local_ip' - -# Shorthands -alias l='ls' -alias c='cd' -alias v='nvim' -alias vim='nvim' -alias g='git' -alias ff='fastfetch' -alias fetch='fastfetch' - -# Other options or commands -alias ll='ls -l' -alias ga='git add' -alias gc='git commit' -alias gs='git status' -alias gp='git push' -alias gl='git pull' - -parse_git_branch() { - command -v git >/dev/null 2>&1 || return - - git_branch=$(git branch --no-color 2>/dev/null) - [ -z "$git_branch" ] && return - is_dirty=$(git status --porcelain 2>/dev/null) - [ -n "$is_dirty" ] && color="red" || color="magenta" - - printf '%s' " %F{${color}}${git_branch#* }" -} - -## Prompts ## -PROMPT=" -%F{green}%n@%M %F{blue}%~\$(parse_git_branch) %F{reset}%% " -RPROMPT='%F{white}%*%F{reset}' - -## External loading ## -if [ -d "$XDG_DATA_HOME/zsh/plugins" ]; then - for p in "$XDG_DATA_HOME"/zsh/plugins/*/*.plugin.zsh; do - . "$p" - done - unset p -fi