From 87e8c0dfb0f03239d68ae66fbb9f45c2e59193c1 Mon Sep 17 00:00:00 2001 From: ItsDrike Date: Thu, 8 Jul 2021 22:43:49 +0200 Subject: [PATCH] Rename theme to prompt --- home/.config/sh/aliases | 3 +-- home/.config/sh/{theme => prompt} | 0 home/.zshrc | 12 +++++++----- 3 files changed, 8 insertions(+), 7 deletions(-) rename home/.config/sh/{theme => prompt} (100%) diff --git a/home/.config/sh/aliases b/home/.config/sh/aliases index aa191ad..8e09191 100755 --- a/home/.config/sh/aliases +++ b/home/.config/sh/aliases @@ -63,8 +63,7 @@ alias cffunctions='vim ~/.config/sh/functions' alias cfenviron='vim ~/.config/sh/environ' alias cfxdg='cfenviron' alias cfhandlers='vim ~/.config/sh/handlers' -alias cftheme='vim ~/.config/sh/theme' -alias cfprompt='cftheme' +alias cfprompt='vim ~/.config/sh/prompt' alias cfkeybinds='vim ~/.config/sh/keybinds' # Python diff --git a/home/.config/sh/theme b/home/.config/sh/prompt similarity index 100% rename from home/.config/sh/theme rename to home/.config/sh/prompt diff --git a/home/.zshrc b/home/.zshrc index 80ca2b3..cd65402 100755 --- a/home/.zshrc +++ b/home/.zshrc @@ -15,9 +15,6 @@ setopt numericglobsort # sort filenames numerically when it makes sense export ZSH_CACHE="$HOME/.cache/zsh" export ZSH_COMPDUMP="$ZSH_CACHE/zcompdump-$ZSH_VERSION" # for auto/tab completion -[ -f ~/.zsh-update ] && mv ~/.zsh-update $ZSH_CACHE/.zsh-update -[ -f ~/.sudo_as_admin_sucessful ] && rm ~/.sudo_as_admin_successful # Ubuntu makes this every with sudo usage - # History configuration HISTFILE="$ZSH_CACHE/history" HISTSIZE=10000 @@ -29,6 +26,11 @@ setopt hist_verify # show commands with history expansion to user b #setopt hist_expire_dups_first # delete duplicates first when HISTFILE size exceeds HISTFILE #setopt share_history # share command history data between terminals +# Automatically move files to appropriate locations +[ -f ~/.zsh-update ] && mv ~/.zsh-update $ZSH_CACHE/.zsh-update +[ -f ~/.bash_history ] && mv ~/.bash_history $HISTFILE +[ -f ~/.sudo_as_admin_sucessful ] && rm ~/.sudo_as_admin_successful # Ubuntu makes this every with sudo usage + # oh-my-zsh configuration (DISABLED by default, if you want oh-my-zsh, uncomment these) #export ZSH="/usr/share/oh-my-zsh" #ZSH_THEME="af-magic" @@ -46,7 +48,7 @@ zstyle ':completion:*' group-name '' # group results by category zstyle ':completion:::::' completer _expand _complete _ignored _approximate #enable approximate matches for completio # Color support -#autoload -U colors && colors +autoload -U colors && colors # Environmental variable exports, including XDG standard definitions [ -f ~/.config/sh/environ ] && source ~/.config/sh/environ @@ -57,7 +59,7 @@ zstyle ':completion:::::' completer _expand _complete _ignored _approximate #ena # Load key bindings [ -f ~/.config/sh/keybinds ] && source ~/.config/sh/keybinds # Load prompt -[ -f ~/.config/sh/theme ] && . ~/.config/sh/theme +[ -f ~/.config/sh/prompt ] && . ~/.config/sh/prompt # Load extensions (should be last) . /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null # Syntax highlighting