Skip to content

Commit

Permalink
move foreach-script to bin
Browse files Browse the repository at this point in the history
  • Loading branch information
moukoublen committed Jan 31, 2025
1 parent 2a6a868 commit 8c1fb16
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .helpers/shellcheck
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo ""

[[ ${1} == "-v" ]] && export VERBOSE="1"

./.helpers/foreach-script shellcheck \
./bin/foreach-script shellcheck \
--norc \
--external-sources \
--format=tty \
Expand Down
2 changes: 1 addition & 1 deletion .helpers/shfmt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ echo "shfmt path : $(which shfmt)"
echo "shfmt version: $(shfmt --version)"
echo ""

./.helpers/foreach-script shfmt \
./bin/foreach-script shfmt \
--simplify \
--language-dialect auto \
--case-indent \
Expand Down
File renamed without changes.
3 changes: 3 additions & 0 deletions config/gnome/lib/gnome-shell-settings.bash
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,6 @@ __get-settings() {
}

${func}

# '<Ctrl><Alt>s' gnome-control-center sound
# '<Ctrl><Alt>t' ptyxis --new-window
28 changes: 3 additions & 25 deletions config/vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"diffEditor.ignoreTrimWhitespace": false,
"files.trimTrailingWhitespace": true,
"files.autoSave": "onFocusChange",
"editor.smoothScrolling": true,
"editor.bracketPairColorization.enabled": false, //todo: revisit
"editor.minimap.enabled": false,
Expand Down Expand Up @@ -29,6 +28,7 @@
"workbench.settings.editor": "json",
"workbench.startupEditor": "newUntitledFile",
"window.titleBarStyle": "custom",
"window.menuBarVisibility": "compact",
"window.titleSeparator": "",
"window.title": "${rootName}${separator}${rootPath} ${dirty}",
"terminal.integrated.gpuAcceleration": "off",
Expand Down Expand Up @@ -192,30 +192,6 @@
"tab.hoverBorder": "#0078d4",
"editorGutter.deletedBackground":"#37373d",
},
"[GitHub Dark Default]": {
// https://primer.style/primitives/storybook/?path=/story/color-base-scales--all-scales&globals=theme:dark
"list.errorForeground": "#ff7b72", // scale-red-3
"list.warningForeground": "#e3b341", // scale-yellow-2
"gitDecoration.modifiedResourceForeground": "#bc8cff", // scale-purple-3
"gitDecoration.untrackedResourceForeground": "#3fb950", // scale-green-3
"gitDecoration.ignoredResourceForeground": "#8b949e", // scale-gray-3
"tab.activeForeground": "#f0f6fc", // scale-gray-0
"tab.activeBackground": "#42062a", // scale-pink-9
"tab.activeModifiedBorder": "#bc8cff", // scale-purple-3
"tab.activeBorderTop": "#42062a", // scale-pink-9
"tab.activeBorder": "#161b22", // scale-gray-8
"tab.hoverBackground": "#010409", // scale-black
"tab.hoverForeground": "#f778ba", // scale-pink-3
"tab.hoverBorder": "#f778ba", // scale-pink-3
"editor.selectionBackground": "#7d245780", //scale-pink-7 with opacity
"editor.lineHighlightBackground": "#79c0ff20", // scale-blue-2 with opacity
"editorGutter.modifiedBackground": "#bc8cff", // scale-purple-3
"editorOverviewRuler.modifiedForeground": "#bc8cff" // scale-purple-3
},
"[GitHub Dark Dimmed]":{
// https://primer.style/primitives/storybook/?path=/story/color-base-scales--all-scales&globals=theme:dark_dimmed
"editor.selectionBackground": "#7e325a90", //scale-pink-7 with opacity
}
},
// </themes and colors mods>
"editor.accessibilitySupport": "off",
Expand All @@ -224,4 +200,6 @@
"*",
"!go.mod"
],
"files.autoSave": "afterDelay",
"window.newWindowProfile": "Default",
}
9 changes: 3 additions & 6 deletions lib/50-go.bash
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ fi

if command -v go 1>/dev/null 2>&1; then
# set gopath away from home
if [ -d /goose/goworkspace ]; then
export GOPATH="/goose/goworkspace"
if [[ -d /xyz/go ]]; then
export GOPATH="/xyz/go"
else
export GOPATH="${HOME}/goworkspace"
fi
Expand All @@ -31,10 +31,7 @@ go-test() {
rm -rf /tmp/golang.coverage.txt || true
}

go-build() { (
set -x
go build -trimpath -ldflags '-s -w' "${@}"
); }
## go build -trimpath -ldflags '-s -w' "${@}"

go-install() {
echo -e "> go install \e[0;35m${*}\e[0m"
Expand Down
12 changes: 8 additions & 4 deletions scripts/fedora-init
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,22 @@ sudo systemctl stop firewalld.service
sudo systemctl disable firewalld.service

sudo dnf install \
git git-delta sqlite gcc gcc-c++ strace gdb cmake automake make binutils-devel glibc-devel glibc-static \
git sqlite gcc gcc-c++ strace gdb cmake automake make binutils-devel glibc-devel glibc-static \
jq curl wget redhat-lsb-core htop vim vim-common vim-enhanced nano \
ack ripgrep

# git-delta # separate script to install from github.

sudo dnf install \
meld gitg gitk \
gnome-tweak-tool gnome-extensions-app gnome-usage \
gtk-murrine-engine gtk-unico-engine gtk2-engines pavucontrol \
atop iftop iotop nmon nvtop procps-ng bat duf fd-find fzf
atop iftop iotop nmon nvtop procps-ng duf fd-find

# bat fzf
# gtk-murrine-engine gtk-unico-engine gtk2-engines pavucontrol \

sudo dnf install \
pavucontrol gnome-shell-extension-user-theme chrome-gnome-shell
gnome-shell-extension-user-theme chrome-gnome-shell

sudo dnf groupinstall "Development Tools"
sudo dnf install @development-tools
Expand Down
3 changes: 0 additions & 3 deletions scripts/fedora-install-codecs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/env bash

sudo dnf groupinstall multimedia --allowerasing
sudo dnf groupinstall "Sound and Video" --allowerasing

sudo dnf -y install \
amrnb \
amrwb \
Expand Down

0 comments on commit 8c1fb16

Please sign in to comment.