From 9ac5ea9e15d9d13d609d4e1ac4ab5633df71e674 Mon Sep 17 00:00:00 2001 From: Joshua Goins Date: Tue, 2 Aug 2022 15:05:08 -0400 Subject: [PATCH] Add groups script, add .local/bin to PATH --- dot_local/bin/executable_groups | 8 ++++++++ .../{executable_start-win10.sh => executable_start-win10} | 0 private_dot_config/zsh/dot_zshrc | 3 +-- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 dot_local/bin/executable_groups rename dot_local/bin/{executable_start-win10.sh => executable_start-win10} (100%) diff --git a/dot_local/bin/executable_groups b/dot_local/bin/executable_groups new file mode 100644 index 0000000..2f50d80 --- /dev/null +++ b/dot_local/bin/executable_groups @@ -0,0 +1,8 @@ +#!/bin/bash +shopt -s nullglob +for g in $(find /sys/kernel/iommu_groups/* -maxdepth 0 -type d | sort -V); do + echo "IOMMU Group ${g##*/}:" + for d in $g/devices/*; do + echo -e "\t$(lspci -nns ${d##*/})" + done; +done; diff --git a/dot_local/bin/executable_start-win10.sh b/dot_local/bin/executable_start-win10 similarity index 100% rename from dot_local/bin/executable_start-win10.sh rename to dot_local/bin/executable_start-win10 diff --git a/private_dot_config/zsh/dot_zshrc b/private_dot_config/zsh/dot_zshrc index 6056930..65351bf 100644 --- a/private_dot_config/zsh/dot_zshrc +++ b/private_dot_config/zsh/dot_zshrc @@ -60,5 +60,4 @@ key[Control-Right]="${terminfo[kRIT5]}" [[ -n "${key[Control-Left]}" ]] && bindkey -- "${key[Control-Left]}" backward-word [[ -n "${key[Control-Right]}" ]] && bindkey -- "${key[Control-Right]}" forward-word -export GEM_HOME="$(ruby -e 'puts Gem.user_dir')" -export PATH="$PATH:$GEM_HOME/bin" +export PATH="$PATH:$HOME/.local/bin"