From f1a014a38aaeefd420a217599531370736a9187f Mon Sep 17 00:00:00 2001 From: venus Date: Tue, 2 Jun 2026 01:46:52 -0500 Subject: [PATCH] added some basic qol and path modifications --- .zcompdump | 33 +++++++++++++++++++-------------- .zshrc | 20 ++++++++++++-------- alias | 3 +++ zsh.config | 4 +++- 4 files changed, 37 insertions(+), 23 deletions(-) diff --git a/.zcompdump b/.zcompdump index a5c49b8..68237c2 100644 --- a/.zcompdump +++ b/.zcompdump @@ -1,4 +1,4 @@ -#files: 880 version: 5.9 +#files: 885 version: 5.9 _comps=( '-' '_precommand' @@ -368,6 +368,7 @@ _comps=( 'fixwwps' '_psutils' 'flac' '_flac' 'flameshot' '_flameshot' +'flatpak' '_flatpak' 'flex' '_flex' 'flex++' '_flex' 'flipdiff' '_patchutils' @@ -451,6 +452,7 @@ _comps=( 'git' '_git' 'git-cvsserver' '_git' 'gitk' '_git' +'gitleaks' '_gitleaks' 'git-receive-pack' '_git' 'git-shell' '_git' 'git-upload-archive' '_git' @@ -737,6 +739,7 @@ _comps=( 'ltrace' '_ltrace' 'lua' '_lua' 'luarocks' '_luarocks' +'luarocks-admin' '_luarocks-admin' 'lynx' '_lynx' 'lz4' '_lz4' 'lz4c' '_lz4' @@ -1256,6 +1259,7 @@ _comps=( 'svnliteadmin' '_subversion' 'swaks' '_swaks' 'swanctl' '_swanctl' +'swayimg' '_swayimg' 'swaylock' '_swaylock' 'swift' '_swift' 'swiftc' '_swift' @@ -1740,19 +1744,20 @@ autoload -Uz _bat _bluetoothctl _bootctl _busctl _bwrap \ _calibre _cargo _coredumpctl _ctr _curl \ _deno _dkms _dng _dngconverter _docker \ _dolphin _email-notmuch _exercism _eza _fastfetch \ - _flameshot _hostnamectl _hyprctl _hyprdynamicmonitors _hyprpm \ - _hyprshade _hyprshell _img2sixel _insmod _john \ - _journalctl _kdeconnect _kernel-install _keyring _kitty \ - _localectl _loginctl _lsmod _machinectl _medusa \ - _meson _mkinitcpio _mpv _msfconsole _msfvenom \ - _networkctl _ninja _niri _nix _notmuch \ - _oomctl _p11-kit _pacman _paru _pip \ - _playerctl _poetry _pulseaudio _pwn _qpdf \ - _r2 _rabin2 _radiff2 _rafind2 _ragg2 \ - _rahash2 _rasm2 _rax2 _rclone _resolvectl \ - _rg _rmmod _rmpc _run0 _scrcpy \ - _sd_bus_address _sd_hosts_or_user_at_host _sd_machines _sd_outputmodes _sd_unit_files \ - _sensors _sensors-detect _shtab _swaylock _systemctl \ + _flameshot _flatpak _gitleaks _hostnamectl _hyprctl \ + _hyprdynamicmonitors _hyprpm _hyprshade _hyprshell _img2sixel \ + _insmod _john _journalctl _kdeconnect _kernel-install \ + _keyring _kitty _localectl _loginctl _lsmod \ + _luarocks _luarocks-admin _machinectl _medusa _meson \ + _mkinitcpio _mpv _msfconsole _msfvenom _networkctl \ + _ninja _niri _nix _notmuch _oomctl \ + _p11-kit _pacman _paru _pip _playerctl \ + _poetry _pulseaudio _pwn _qpdf _r2 \ + _rabin2 _radiff2 _rafind2 _ragg2 _rahash2 \ + _rasm2 _rax2 _rclone _resolvectl _rg \ + _rmmod _rmpc _run0 _scrcpy _sd_bus_address \ + _sd_hosts_or_user_at_host _sd_machines _sd_outputmodes _sd_unit_files _sensors \ + _sensors-detect _shtab _swayimg _swaylock _systemctl \ _systemd _systemd-analyze _systemd-delta _systemd-hwdb _systemd-id128 \ _systemd-inhibit _systemd-nspawn _systemd-path _systemd-run _systemd-tmpfiles \ _timedatectl _tldr _trust _udevadm _udiskie \ diff --git a/.zshrc b/.zshrc index 694afe1..58881c1 100644 --- a/.zshrc +++ b/.zshrc @@ -1,5 +1,4 @@ -#!/bin/sh -# env vars to set on login, zsh settings in ~/config/zsh/.zshrc +#!/bin/sh env vars to set on login, zsh settings in ~/config/zsh/.zshrc # added `export ZDOTDIR="$HOME/.config/zsh"` to /etc/zsh/zshenv in order to place this file at .config/zsh/.zprofile # read first @@ -27,9 +26,6 @@ export ZDOTDIR="$XDG_CONFIG_HOME/zsh" export LESSHISTFILE="$XDG_CACHE_HOME/less_history" export PYTHON_HISTORY="$XDG_DATA_HOME/python/history" -# add scripts to path -export PATH="$XDG_CONFIG_HOME/scripts:$PATH" -export PATH="$PATH:$HOME/.local/share/cargo/bin/" # moving other files and some other vars export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc" @@ -67,14 +63,22 @@ export LESS_TERMCAP_se="$(printf '%b' '')" export LESS_TERMCAP_us="$(printf '%b' '')" export LESS_TERMCAP_ue="$(printf '%b' '')" -#source primary config script -source $XDG_CONFIG_HOME/zsh/zsh.config # Created by `pipx` on 2026-03-26 01:09:22 +# add custom elements to path export PATH="$PATH:/home/venus/.local/bin" +export PATH="$PATH:$XDG_CONFIG_HOME/scripts" +export PATH="$PATH:$HOME/.local/share/cargo/bin/" +export PATH="$PATH:$HOME/.local/share/cargo/bin/" +export PATH="$PATH:$HOME/.luarocks/bin/" +export PATH="$PATH:$HOME/$GOBIN" # Remove the default of run-help being aliased to man -unalias run-help +unalias run-help 2>/dev/null # Use zsh's run-help, which will display information for zsh builtins. autoload run-help alias help="run-help" + +#source primary config script +source $XDG_CONFIG_HOME/zsh/zsh.config + diff --git a/alias b/alias index b6eb1e6..26f7ce3 100644 --- a/alias +++ b/alias @@ -35,6 +35,7 @@ alias ipc="ipcheck" alias pr="ping riverrooks.dev" alias pg="ping gmail.com" alias snake="python3" +alias path="echo $PATH" alias -g @d="~/Downloads/Browser/$(eza -s new ~/Downloads/Browser | tail -n 1)" alias -g L="| less" alias -g T="| tail" @@ -44,4 +45,6 @@ alias -g S="| sort" alias -g SC="| sort | uniq -c" alias -g R="| rg " alias -g W="| awk " +alias -g C="| wl-copy" +checkhash(){du $1 | sha256sum} diff --git a/zsh.config b/zsh.config index 0520ce5..211a211 100644 --- a/zsh.config +++ b/zsh.config @@ -75,7 +75,6 @@ if [ -n "/usr/share/zsh/plugins " ]; then source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh # syntax highlighting # requires zsh-syntax-highlighting package - source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh fi #setup oh-my-posh shell @@ -85,3 +84,6 @@ fi # replace cd with zoxide (fzf support for changing dir) eval "$(zoxide init zsh)" + +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh +