summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTyler Davis <tyler@gluecode.net>2024-05-08 02:39:53 +0000
committerTyler Davis <tyler@gluecode.net>2024-05-08 02:39:53 +0000
commitf8bd43d79286e3a142c7728081a2705542f9eeb8 (patch)
tree9098955c87c66058a349734734599153e4bc9977
parentcfea4592bf0d1e4d5632daa208a084719543c2aa (diff)
downloaddotfiles-f8bd43d79286e3a142c7728081a2705542f9eeb8.tar.gz
dotfiles-f8bd43d79286e3a142c7728081a2705542f9eeb8.zip
bin: posix all the things
-rwxr-xr-x.local/bin/gitrect-fix6
-rwxr-xr-x.local/bin/gitrect-update6
-rw-r--r--.profile23
3 files changed, 9 insertions, 26 deletions
diff --git a/.local/bin/gitrect-fix b/.local/bin/gitrect-fix
index aebebbb..97feb08 100755
--- a/.local/bin/gitrect-fix
+++ b/.local/bin/gitrect-fix
@@ -146,9 +146,5 @@ done <$DEFAULT_STATE
# Update all remotes if we have the fetchgit command
if [ $(command -v fetchgit) ]; then
- if [ $(command -v fd) ]; then
- fd -H -I -t d -E mod -E vendor "\.git$" $WORKDIR -x fetchgit
- else
- find $WORKDIR -name ".git" -exec fetchgit {} \;
- fi
+ find $WORKDIR -name ".git" -exec fetchgit {} \;
fi
diff --git a/.local/bin/gitrect-update b/.local/bin/gitrect-update
index 667172f..b86d114 100755
--- a/.local/bin/gitrect-update
+++ b/.local/bin/gitrect-update
@@ -98,11 +98,7 @@ fi
# If there are input files (for example) that follow the options, they
# will remain in the "$@" positional parameters.
-if [ "$(command -v fd)" ]; then
- LIST=$(eval "fd -I -H -t d '\.git$' ${WORKDIR}")
-else
- LIST=$(eval "find -type d -name \.git ${WORKDIR}")
-fi
+LIST=$(eval "find ${WORKDIR} -type d -name \.git")
# for each directory, create a line in TEMPFILE equivalent to:
# short/path/here,origin=url1,upstream=url2,...
diff --git a/.profile b/.profile
index d31ede7..9f7b8a1 100644
--- a/.profile
+++ b/.profile
@@ -84,8 +84,14 @@ fi
# Ensure less always uses the one-page, raw control characters, and no-init settings
export LESS=FRX
+
# Defaults
-alias ls='/bin/ls -F'
+alias ls='/bin/ls -F-h -A -D "%F %H:%M:%S"'
+alias ll='/bin/ls -F-h -A -D "%F %H:%M:%S" -l'
+
+alias dua='du -h -d 1 | sort -h'
+
+alias upcode="find ~/.code -name \".git\" -exec fetchgit {} \;"
## Zstd always uses all cores
if [ "$(command -v zstd)" ]; then
@@ -101,14 +107,6 @@ if [ -d "$HOME/.cargo/bin" ]; then
export PATH=$HOME/.cargo/bin:$PATH
fi
-if [ "$(command -v eza)" ]; then
- alias ls='eza -G --color never -a -s type -F --time-style=long-iso'
- alias ll='eza -l -b --color never -a -s type -F --time-style=long-iso'
-elif [ "$(command -v exa)" ]; then
- alias ls='exa -G --color never -a -s type -F --time-style=long-iso'
- alias ll='exa -l -b --color never -a -s type -F --time-style=long-iso'
-fi
-
if [ "$(command -v bat)" ]; then
alias cat='bat -pp'
export BAT_THEME="ansi"
@@ -118,13 +116,6 @@ if [ "$(command -v ncdu)" ]; then
alias ncdu="ncdu --color=off"
fi
-#upcode alias for quickly updating code where gitrect cannot
-if [ "$(command -v fd)" ]; then
- alias upcode="fd -H -t d -E mod -E vendor \".git$\" ~/.code -x fetchgit"
-else
- alias upcode="find ~/.code -name \".git\" |xargs -n1 fetchgit "
-fi
-
# Must put these after OSX setup so brew is part of the $PATH
# Colima / Podman
if [ $(command -v colima) ]; then