git.lirion.de

Of git, get, and gud

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.bash/aliases.bash1
1 files changed, 1 insertions, 0 deletions
diff --git a/.bash/aliases.bash b/.bash/aliases.bash
index eb83e6d..c7954e9 100644
--- a/.bash/aliases.bash
+++ b/.bash/aliases.bash
@@ -68,6 +68,7 @@ function add-sshagent-init {
# ----- FS ----- #
xstat() {
for target in "${@}";do
+ # shellcheck disable=SC2012
inode=$(ls -di "${target}"|cut -d ' ' -f 1)
fs=$(df "${target}"|tail -n 1|awk '{print $1}')
crtime=$(sudo debugfs -R 'stat <'"${inode}"'>' "${fs}" 2>/dev/null | grep -oP 'crtime.*--\s*\K.*')