From 5b646567ce53693d4707825e7227d059c143e279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=A9=20Cassiop=C3=A9e=20Gauthier?= Date: Fri, 21 Jul 2023 16:20:27 -0400 Subject: [PATCH] Automatically update Oh My Zsh, and other minor changes --- kitty.conf | 6 +++--- wezterm.lua | 1 + zshenv | 4 ++++ zshrc | 29 +++++++++++++++++++---------- 4 files changed, 27 insertions(+), 13 deletions(-) diff --git a/kitty.conf b/kitty.conf index f1a0ee5..f622561 100644 --- a/kitty.conf +++ b/kitty.conf @@ -1,10 +1,10 @@ # vim:fileencoding=utf-8:ft=conf:foldmethod=marker -font_family IBM Plex Mono Semibold -italic_font IBM Plex Mono Semibold Italic +font_family IBM Plex Mono Demibold +italic_font IBM Plex Mono Demibold Italic bold_font IBM Plex Mono Bold -font_size 14 +font_size 13 copy_on_select clipboard diff --git a/wezterm.lua b/wezterm.lua index 77ad1c9..13c8395 100644 --- a/wezterm.lua +++ b/wezterm.lua @@ -17,4 +17,5 @@ return { }), initial_cols = 140, initial_rows = 50, + enable_wayland = false, } diff --git a/zshenv b/zshenv index c36eec6..b398ac9 100644 --- a/zshenv +++ b/zshenv @@ -5,3 +5,7 @@ export LESS=RSM if [ -f "$HOME/.cargo/env" ]; then . "$HOME/.cargo/env" fi + +if [ -f "/opt/zig" ]; then + export PATH=$PATH:/opt/zig +fi diff --git a/zshrc b/zshrc index 081be23..09a07d0 100644 --- a/zshrc +++ b/zshrc @@ -6,8 +6,7 @@ fi fpath+=~/.zfunc # If you come from bash you might have to change your $PATH. -# export PATH=$HOME/bin:/usr/local/bin:$PATH -export PATH=$HOME/.local/bin:$PATH +export PATH=$HOME/.local/bin:$HOME/.local/share/yabridge:$PATH # Path to your oh-my-zsh installation. export ZSH="$HOME/.oh-my-zsh" @@ -31,14 +30,13 @@ ZSH_THEME="witchhazelhypercolor" # Case-sensitive completion must be off. _ and - will be interchangeable. # HYPHEN_INSENSITIVE="true" -# Uncomment the following line to disable bi-weekly auto-update checks. -# DISABLE_AUTO_UPDATE="true" - -# Uncomment the following line to automatically update without prompting. -# DISABLE_UPDATE_PROMPT="true" +# Uncomment one of the following lines to change the auto-update behavior +# zstyle ':omz:update' mode disabled # disable automatic updates +zstyle ':omz:update' mode auto # update automatically without asking +# zstyle ':omz:update' mode reminder # just remind me to update when it's time # Uncomment the following line to change how often to auto-update (in days). -# export UPDATE_ZSH_DAYS=13 +# zstyle ':omz:update' frequency 13 # Uncomment the following line if pasting URLs and other text is messed up. # DISABLE_MAGIC_FUNCTIONS="true" @@ -53,6 +51,9 @@ ZSH_THEME="witchhazelhypercolor" # ENABLE_CORRECTION="true" # Uncomment the following line to display red dots whilst waiting for completion. +# You can also set it to another string to have that shown instead of the default red dots. +# e.g. COMPLETION_WAITING_DOTS="%F{yellow}waiting...%f" +# Caution: this setting can cause issues with multiline prompts in zsh < 5.7.1 (see #5765) # COMPLETION_WAITING_DOTS="true" # Uncomment the following line if you want to disable marking untracked files @@ -123,8 +124,16 @@ source $ZSH/oh-my-zsh.sh # alias zshconfig="mate ~/.zshrc" # alias ohmyzsh="mate ~/.oh-my-zsh" -alias ssh="wezterm ssh" -alias icat="wezterm imgcat" +case $TERM in + xterm-kitty) + # alias ssh="kitty +kitten ssh" + alias icat="kitty icat --align=left" + ;; + *) + alias ssh="wezterm ssh" + alias icat="wezterm imgcat" + ;; +esac alias isvg="rsvg-convert | icat" alias idot='dot -Tsvg -Gbgcolor="transparent" -Ecolor="#f8f8f2ff" -Efontcolor="#f8f8f2ff" -Efontname="IBM Plex Mono Semibold" -Ncolor="#f8f8f2ff" -Nfontcolor="#f8f8f2ff" -Nfontname="IBM Plex Mono Semibold" | isvg'