From 0e3d7c9afdc49e1b81f976a380a878db0d0c3947 Mon Sep 17 00:00:00 2001 From: zachir Date: Wed, 23 Aug 2023 02:02:51 -0500 Subject: Add zfunc completion path support --- zsh/.zshrc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'zsh/.zshrc') diff --git a/zsh/.zshrc b/zsh/.zshrc index d11c091..0c0366f 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -63,6 +63,8 @@ zle -N zle-line-init zle -N zle-keymap-select export KEYTIMEOUT=1 +fpath+="$ZDOTDIR/zfunc" + autoload -Uz compinit promptinit compinit -d $CONFIG/zcompdump promptinit -- cgit v1.2.3 From e7f2de1fc4362673d4cce38441e396e08929c942 Mon Sep 17 00:00:00 2001 From: zachir Date: Thu, 19 Oct 2023 09:07:03 -0500 Subject: Change shell alias and ENV, set kitty title Adding in lb=lsblk, adding in more XDG dirs, and permanently set kitty title to 'terminal' from zsh. --- sh/aliases | 2 +- sh/profile | 9 +++++++-- zsh/.zshrc | 3 +-- 3 files changed, 9 insertions(+), 5 deletions(-) (limited to 'zsh/.zshrc') diff --git a/sh/aliases b/sh/aliases index 6b254d7..ef9a53b 100644 --- a/sh/aliases +++ b/sh/aliases @@ -24,13 +24,13 @@ esac alias ll='ls -l' alias la='ls -A' alias lla='ls -lA' +alias lb='lsblk' alias md='mkdir -p' alias ch='cd $HOME' #alias nvim='vim' alias nv='nvim' alias v='nvim' -#alias lf='lfrun' ## Change utils alias rm='rm -i' diff --git a/sh/profile b/sh/profile index 1174421..79151b9 100644 --- a/sh/profile +++ b/sh/profile @@ -2,11 +2,17 @@ . /etc/profile [ -f /etc/profile.d/nix-daemon.sh ] && . /etc/profile.d/nix-daemon.sh -# Other XDG paths +# Other XDG vars export XDG_DATA_HOME=${XDG_DATA_HOME:="$HOME/.local/share"} export XDG_CACHE_HOME=${XDG_CACHE_HOME:="$HOME/.cache"} export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:="$HOME/.config"} [ -f "${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs" ] && . "${XDG_CONFIG_HOME:-$HOME/.config}/user-dirs.dirs" +export XDG_CURRENT_DESKTOP="i3" +export XDG_DOCUMENTS_DIR=${HOME}/Documents +export XDG_DOWNLOAD_DIR=${HOME}/Downloads +export XDG_DESKTOP_DIR=${HOME}/Desktop +export XDG_VIDEOS_DIR=${HOME}/Videos + # Doesn't seem to work export ANDROID_SDK_HOME="$XDG_CONFIG_HOME"/android @@ -55,7 +61,6 @@ export QT_QPA_PLATFORMTHEME=qt5ct # Fix wayland stuff export MOZ_ENABLE_WAYLAND=1 export XKB_DEFAULT_OPTIONS=caps:escape -export XDG_CURRENT_DESKTOP=Unity # Default Apps export EDITOR="nvim" diff --git a/zsh/.zshrc b/zsh/.zshrc index 0c0366f..3314bb3 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -97,5 +97,4 @@ bindkey -- '^[[B' down-line-or-beg [[ -n "${key[Shift-Tab]}" ]] && bindkey -- "${key[Shift-Tab]}" reverse-menu-complete [[ -n "${key[Delete]}" ]] && bindkey -- "${key[Delete]}" delete-char -#eval "$(starship init zsh)" -type portmaster-start 2>&1 >/dev/null && eval "$(portmaster-start --data=/opt/safing/portmaster completion zsh)" +precmd () {print -Pn "\e]0;terminal\a"} -- cgit v1.2.3