From 89cc1438a33ca98563673b3805a6a90a0da82491 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 25 Nov 2023 22:09:54 -0600 Subject: add zsh/.zcompdump to gitignote --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 7df0a8b..de1cbcb 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ nvim/.netrwhist nvim/plugged +zsh/.zcompdump -- cgit v1.2.3 From 3e1eee8268d14ebe867bd1ebdae814ac3789a12d Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 25 Nov 2023 22:10:13 -0600 Subject: set wrapping off --- nvim/init.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvim/init.vim b/nvim/init.vim index 699fcb4..9e89eb6 100755 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -42,6 +42,7 @@ set smartcase " ...Unless the search term is capital set splitbelow splitright " Open splits on bottom/right instead of top/left set termguicolors " Enable GUI colors for the terminal to get truecolor set wildmode=longest,list,full " Enable file auto-complete +set wrap! " Disable word wrapping syntax on " Enable syntax highlighting " Get rid of the pointless .viminfo files that clutter the home directory @@ -52,7 +53,7 @@ set viminfo="" autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o " Tabbing -let tabwidth = 4 +"let tabwidth = 4 set tabstop=4 " Set width of tabs to 4 instead of default 8 set shiftwidth=4 " Tab key will only insert 1 tab " Use tabs instead of spaces -- cgit v1.2.3 From 3e24aed2041d74503dc22dbfcc64ebd4a68b04bc Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 25 Nov 2023 22:25:03 -0600 Subject: change tabs to spaces and clean up wording --- zsh/zprofile | 12 ++++++------ zsh/zshrc | 30 +++++++++++++----------------- 2 files changed, 19 insertions(+), 23 deletions(-) diff --git a/zsh/zprofile b/zsh/zprofile index 79e87c5..2f58046 100755 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -7,7 +7,7 @@ export BROWSER='launch firefox' export SUDO='doas' # Use sudo=${SUDO-sudo} -[ $EUID = 0 ] && export SUDO='' # When running as root, don't use sudo +[ $EUID = 0 ] && export SUDO='' # When running as root, don't use sudo # Make programs follow the XDG base directory specification export XDG_CACHE_HOME="$HOME/.cache" @@ -22,7 +22,7 @@ export GTK2_RC_FILES="$XDG_CONFIG_HOME/gtk-2.0/gtkrc" export MBSYNCRC="$XDG_CONFIG_HOME/mbsync/config" export NOTMUCH_CONFIG="$XDG_CONFIG_HOME/notmuch/config" export NPM_CONFIG_USERCONFIG="$XDG_CONFIG_HOME/npm/npmrc" -export X11CONFIG="$XDG_CONFIG_HOME/x11" # Used for X11 scripts +export X11CONFIG="$XDG_CONFIG_HOME/x11" # Used for X11 scripts export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export XDG_DATA_HOME="$HOME/.local/share" @@ -34,11 +34,11 @@ export PYTHONUSERBASE="$XDG_DATA_HOME/python" export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_DATA_HOME/java" export XDG_STATE_HOME="$HOME/.local/state" -export LESSHISTFILE='-' # Disable this, but it would be considered a state file -export ZHISTFILE="$XDG_STATE_HOME/zsh/zhistory" # Used to set HISTFILE in zshrc without exporting since HISTFILE is generic to most shells, and desired behavior is for zsh to have its own history file +export LESSHISTFILE='-' # Disable this, but it would be considered a state file +export ZHISTFILE="$XDG_STATE_HOME/zsh/zhistory" # Used to set HISTFILE in zshrc without exporting since HISTFILE is generic to most shells, and desired behavior is for zsh to have its own history file # Path -for lbin in "$HOME/.local/bin"{/,/*/}; do export PATH="${lbin%/}:$PATH"; done 2>/dev/null # Add ~/.local/bin and all sub dirs +for lbin in "$HOME/.local/bin"{/,/*/}; do export PATH="${lbin%/}:$PATH"; done 2>/dev/null # Add ~/.local/bin and all sub dirs export PATH="$HOME/.local/opt:$PATH" export PATH="$CARGO_HOME/bin:$PATH" export PATH="$PYTHONUSERBASE/bin:$PATH" @@ -48,7 +48,7 @@ export QT_QPA_PLATFORMTHEME='qt5ct' # Misc Zsh setup mkdir -p "$(dirname "$ZHISTFILE")" -source "$ZDOTDIR/profiles/zprofile.$HOST" 2>/dev/null # Source additional host-specific profiles +source "$ZDOTDIR/profiles/zprofile.$HOST" 2>/dev/null # Source additional host-specific profiles # Autostart X after login [ -z $DISPLAY ] && [[ $UID != 0 ]] && [[ $TTY =~ /dev/tty(1|C0) ]] && startx "$X11CONFIG/xinitrc" diff --git a/zsh/zshrc b/zsh/zshrc index 8bef6af..474d24f 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -1,8 +1,8 @@ #!/usr/bin/env zsh -setopt +o NOMATCH # Non-existant wildcard matches won't produce an error +setopt +o NOMATCH # Non-existant wildcard matches won't produce an error -# Zsh scripts (load general scripts, then host specific scripts, then scripts prepended with !) +# Zsh scripts (load general scripts, then host specific scripts, then scripts with ! prefix) (loaded later = higher priority) for zscript in "$XDG_CONFIG_HOME/zsh/zscripts"{/[^\!]*.zsh,/hosts/*.$HOST.zsh,/!*.zsh}; do source "$zscript"; done 2>/dev/null # Colors! + Prompt @@ -10,24 +10,20 @@ autoload -U colors && colors [ -z "$PS1OVERRIDE" ] && PS1="%B%F{${colbr:-red}}[%F{${colname:-yellow}}%n%F{${colat:-green}}@%F{${colhost:-blue}}%m %F{${coldir:-magenta}}%U%~%u%F{${colbr:-red}}]%f%b%(!.#.$) " # Cd settings -setopt AUTO_CD # `cd` is implied -#setopt CDABLE_VARS # '~/' is implied for `cd` (doesn't work?) +setopt AUTO_CD # `cd` is implied when path is entered # History settings HISTFILE="${ZHISTFILE:-$HOME/.zhistory}" -HISTSIZE=500 # Max lines of history loaded into memory for each zsh session -SAVEHIST=10000000 # Max lines of history saved to HISTFILE before overwriting -setopt EXTENDED_HISTORY # Save superfluous info with command to reduce disk writes when using INC_APPEND_HISTORY or SHARE_HISTORY -setopt HIST_IGNORE_DUPS # Successive duplicate entries ignored -setopt HIST_IGNORE_SPACE # Entries with leading space ignored -setopt HIST_REDUCE_BLANKS # Remove superfluous blank characters before saving -setopt INC_APPEND_HISTORY # Create entries after each command, not after zsh exits -setopt SHARE_HISTORY # Share history between zsh sessions +HISTSIZE=500 # Max lines of history loaded into memory for each zsh session +SAVEHIST=10000000 # Max lines of history saved to HISTFILE before overwriting +setopt EXTENDED_HISTORY # Save superfluous info with command to reduce disk writes when using INC_APPEND_HISTORY or SHARE_HISTORY +setopt HIST_IGNORE_DUPS # Successive duplicate entries ignored +setopt HIST_IGNORE_SPACE # Entries with leading space aren't stored in histfile +setopt HIST_REDUCE_BLANKS # Remove superfluous blank characters before saving +setopt INC_APPEND_HISTORY # Create entries after each command, not after zsh exits +setopt SHARE_HISTORY # Share history between zsh sessions # Input/output settings -setopt INTERACTIVE_COMMENTS # Comments won't be interpreted in an interactive zsh session +setopt INTERACTIVE_COMMENTS # Comments won't be interpreted in an interactive shell -# tmp thing -[ $TTY = /dev/tty2 ] && "/home/timmy/.local/opt/shell-color-scripts/colorscripts/$(ls /home/timmy/.local/opt/shell-color-scripts/colorscripts 2>/dev/null | shuf -n1)" 2>/dev/null - -zplugInitialize # Load zsh plugins using zplug; should be last +zplugInitialize # Load zsh plugins using zplug; goes last -- cgit v1.2.3 From ad081ca8b6253f049e29480d5b4b33f00a9c626f Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 13 Jan 2024 21:10:04 -0600 Subject: create zhistory directory --- zsh/zprofile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zsh/zprofile b/zsh/zprofile index 2f58046..59b1f94 100755 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -2,7 +2,7 @@ # Default programs export EDITOR='nvim' -export TERMINAL='st' +export TERMINAL='alacritty' export BROWSER='launch firefox' export SUDO='doas' @@ -36,6 +36,7 @@ export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_DATA_HOME/java" export XDG_STATE_HOME="$HOME/.local/state" export LESSHISTFILE='-' # Disable this, but it would be considered a state file export ZHISTFILE="$XDG_STATE_HOME/zsh/zhistory" # Used to set HISTFILE in zshrc without exporting since HISTFILE is generic to most shells, and desired behavior is for zsh to have its own history file +mkdir -p "$(dirname "$ZHISTFILE")" # Path for lbin in "$HOME/.local/bin"{/,/*/}; do export PATH="${lbin%/}:$PATH"; done 2>/dev/null # Add ~/.local/bin and all sub dirs -- cgit v1.2.3 From 383ba374f92322fc56e313e67b1bd4b4e2711a79 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 13 Jan 2024 21:12:24 -0600 Subject: disable bell --- zsh/zshrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/zsh/zshrc b/zsh/zshrc index 474d24f..43be609 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -26,4 +26,7 @@ setopt SHARE_HISTORY # Share history between zsh sessions # Input/output settings setopt INTERACTIVE_COMMENTS # Comments won't be interpreted in an interactive shell +# Disable bell +unsetopt BELL + zplugInitialize # Load zsh plugins using zplug; goes last -- cgit v1.2.3 From 7af80137e65daf4a83d4a72fb75f206bdbfb150f Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 13 Jan 2024 21:13:58 -0600 Subject: fix unsetopt for beep --- zsh/zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/zshrc b/zsh/zshrc index 43be609..532c795 100755 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -27,6 +27,6 @@ setopt SHARE_HISTORY # Share history between zsh sessions setopt INTERACTIVE_COMMENTS # Comments won't be interpreted in an interactive shell # Disable bell -unsetopt BELL +unsetopt BEEP zplugInitialize # Load zsh plugins using zplug; goes last -- cgit v1.2.3 From e990aa2771f4225d8a66c473f08fc34db7fcb9f7 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 13 Jan 2024 21:16:45 -0600 Subject: new libreX60 hostname and new commands since switched distro --- zsh/zscripts/hosts/aliasrc.libreX60.zsh | 11 +++++++++++ zsh/zscripts/hosts/aliasrc.librex60.zsh | 7 ------- 2 files changed, 11 insertions(+), 7 deletions(-) create mode 100755 zsh/zscripts/hosts/aliasrc.libreX60.zsh delete mode 100755 zsh/zscripts/hosts/aliasrc.librex60.zsh diff --git a/zsh/zscripts/hosts/aliasrc.libreX60.zsh b/zsh/zscripts/hosts/aliasrc.libreX60.zsh new file mode 100755 index 0000000..1180171 --- /dev/null +++ b/zsh/zscripts/hosts/aliasrc.libreX60.zsh @@ -0,0 +1,11 @@ +#!/bin/sh + +# Package Management +alias \ + apt="sudo apt" \ + +# Shorten program names +alias \ + systemctl="sudo systemctl" \ + sd="systemctl" \ + diff --git a/zsh/zscripts/hosts/aliasrc.librex60.zsh b/zsh/zscripts/hosts/aliasrc.librex60.zsh deleted file mode 100755 index 87f7e08..0000000 --- a/zsh/zscripts/hosts/aliasrc.librex60.zsh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/sh - -# Package Management -alias \ - p="sudo pacman" \ - pq="sudo pacman -Ss" \ - -- cgit v1.2.3 From c0d7d6f62e5aa61464bbf197692ba4887e08944f Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 13 Jan 2024 21:56:20 -0600 Subject: libreX60 profile --- zsh/profiles/zprofile.libreX60 | 4 ++++ zsh/profiles/zprofile.librex60 | 3 --- 2 files changed, 4 insertions(+), 3 deletions(-) create mode 100755 zsh/profiles/zprofile.libreX60 delete mode 100755 zsh/profiles/zprofile.librex60 diff --git a/zsh/profiles/zprofile.libreX60 b/zsh/profiles/zprofile.libreX60 new file mode 100755 index 0000000..2d2613e --- /dev/null +++ b/zsh/profiles/zprofile.libreX60 @@ -0,0 +1,4 @@ +#!/usr/bin/env zsh + +export WM="awesome" +echo hi diff --git a/zsh/profiles/zprofile.librex60 b/zsh/profiles/zprofile.librex60 deleted file mode 100755 index 530563f..0000000 --- a/zsh/profiles/zprofile.librex60 +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env zsh - -export PATH="/usr/local/texlive/2021/bin/x86_64-linux:$PATH" -- cgit v1.2.3 From 778c441b0a91b210c51bd0ef5c269e30de1675f7 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sat, 13 Jan 2024 21:57:45 -0600 Subject: zprofile fixed --- zsh/zprofile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/zprofile b/zsh/zprofile index 59b1f94..fc9911e 100755 --- a/zsh/zprofile +++ b/zsh/zprofile @@ -36,9 +36,9 @@ export _JAVA_OPTIONS="-Djava.util.prefs.userRoot=$XDG_DATA_HOME/java" export XDG_STATE_HOME="$HOME/.local/state" export LESSHISTFILE='-' # Disable this, but it would be considered a state file export ZHISTFILE="$XDG_STATE_HOME/zsh/zhistory" # Used to set HISTFILE in zshrc without exporting since HISTFILE is generic to most shells, and desired behavior is for zsh to have its own history file -mkdir -p "$(dirname "$ZHISTFILE")" # Path +setopt nullglob # Set in case .local/bin doesn't exist for lbin in "$HOME/.local/bin"{/,/*/}; do export PATH="${lbin%/}:$PATH"; done 2>/dev/null # Add ~/.local/bin and all sub dirs export PATH="$HOME/.local/opt:$PATH" export PATH="$CARGO_HOME/bin:$PATH" -- cgit v1.2.3 From 2709dba9956f4b760466c0af8523dbc97adfd4e8 Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sun, 14 Jan 2024 14:02:59 -0600 Subject: change terminal in libreX60 profile --- zsh/profiles/zprofile.libreX60 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/profiles/zprofile.libreX60 b/zsh/profiles/zprofile.libreX60 index 2d2613e..d4f4e9c 100755 --- a/zsh/profiles/zprofile.libreX60 +++ b/zsh/profiles/zprofile.libreX60 @@ -1,4 +1,4 @@ #!/usr/bin/env zsh export WM="awesome" -echo hi +export TERMINAL="st" -- cgit v1.2.3 From ff6286e5e4e6dc1828576ad9ef3aae6cf4c7c06f Mon Sep 17 00:00:00 2001 From: Timmy Keller Date: Sun, 14 Jan 2024 14:03:27 -0600 Subject: launch config for libreX60 --- launch/config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/launch/config b/launch/config index 21446b6..e1ee120 100644 --- a/launch/config +++ b/launch/config @@ -2,19 +2,19 @@ +host fedora +host T495 +host voidx250 -+host librex60 ++host libreX60 #OPTS firefox|brave firefox -P default-esr firefox firefox -P default-default - iceweasel -P default-release + 2 ff-school|chromium|chrome firefox -P School firefox 1 - iceweasel -P School + ^ halt|off|poweroff|shutdown doas poweroff ^ -- cgit v1.2.3