Skip to content

Instantly share code, notes, and snippets.

View curoky's full-sized avatar
🤠
Focusing

curoky curoky

🤠
Focusing
  • Stay at home.
  • Hawaii
View GitHub Profile
@curoky
curoky / exa-wrapper.sh
Last active October 18, 2023 17:03 — forked from eggbean/eza-wrapper.sh
Wrapper script for exa to give it nearly identical switches and appearance to ls. Also automatically adds --git switch when in a git repository.
#!/bin/bash
# If stdout isn't terminal, fallback to default ls.
if [[ ! -t 1 ]] ; then
exec /bin/ls "$@"
fi
## Change following to '0' for output to be like ls and '1' for eza features
# Don't list implied . and .. by default with -a
dot=0
@curoky
curoky / git-mv-with-history
Created March 10, 2022 04:58 — forked from emiller/git-mv-with-history
git utility to move/rename file or folder and retain history with it.
#!/bin/bash
#
# git-mv-with-history -- move/rename file or folder, with history.
#
# Moving a file in git doesn't track history, so the purpose of this
# utility is best explained from the kernel wiki:
#
# Git has a rename command git mv, but that is just for convenience.
# The effect is indistinguishable from removing the file and adding another
# with different name and the same content.