From f2fc0ce4c59dd6a08fdb46b856cf337c3f8bf9f5 Mon Sep 17 00:00:00 2001 From: Jacob McDonnell Date: Tue, 6 May 2025 17:42:48 -0400 Subject: Fixed some issues --- .config/.profile | 2 +- dev-env | 4 ++-- runs/programs | 3 ++- util | 12 ++++-------- 4 files changed, 9 insertions(+), 12 deletions(-) diff --git a/.config/.profile b/.config/.profile index 6cffacf..9f9c102 100644 --- a/.config/.profile +++ b/.config/.profile @@ -1,5 +1,5 @@ export PLAN9=$HOME/personal/plan9 -export PATH=~/personal/bin:~/.local/bin:$PATH:$HOME/go/bin:$PLAN9/bin +export PATH=/opt/MaXX/bin:/usr/dt/bin:~/personal/bin:~/.local/bin:$PATH:$HOME/go/bin:$PLAN9/bin export EDITOR=nvim export HOMEBREW_EDITOR=nvim diff --git a/dev-env b/dev-env index c748bf5..06e5055 100755 --- a/dev-env +++ b/dev-env @@ -23,8 +23,8 @@ for script in $scripts; do done log "Copying Configs" -copy_dir .config $HOME/.config -copy_dir .emacs.d $HOME/.emacs.d +copy_dir .config $HOME +copy_dir .emacs.d $HOME copy_file ".config/.profile" $HOME copy_file ".config/shells/zsh/.zshrc" $HOME diff --git a/runs/programs b/runs/programs index ac5198f..78e1003 100755 --- a/runs/programs +++ b/runs/programs @@ -1,3 +1,4 @@ #!/bin/sh -sudo apt install git tmux zsh golang fzf -y +sudo apt install build-essential gdb clangd git tmux zsh golang fzf -y + diff --git a/util b/util index 6408e2e..8f39336 100755 --- a/util +++ b/util @@ -23,14 +23,10 @@ execute() { copy_dir() { from=$1 to=$2 - pushd $from - dirs="$(find . -maxdepth 1 -mindepth 1 -type d)" - for dir in $dirs; do - log "Copying $dir" - execute rm -rf $to/$dir - execute cp -r $dir $to/$dir - done - popd + name=$(basename $from) + + execute rm -rf $to/$name + execute cp -r $from $to/$name } copy_file() { -- cgit v1.2.3