3 Commits

Author SHA1 Message Date
b0a87fb014 Update README. 2026-02-22 06:35:04 -05:00
6e0d969d78 Add timestamp for entered commands. 2026-02-21 17:10:29 -05:00
84018dbeec Add bash.d. (#7) 2026-02-21 15:14:39 +00:00
2 changed files with 18 additions and 1 deletions

17
.blerc
View File

@@ -52,3 +52,20 @@ function blerc/define-sabbrev-commit {
} }
blehook/eval-after-load complete blerc/define-sabbrev-commit blehook/eval-after-load complete blerc/define-sabbrev-commit
# Show the timestamp aligned to the right after each command is entered.
show_timestamp() {
# 17:10:00 EST-05
local ts="$(date +'%H:%M:%S %Z%:::z')"
# Column to show timestamp.(COLUMNS - length_of_timestamp)
local col=$((COLUMNS - ${#ts}))
# Save current cursor position.
printf '\033[s'
# Move cursor to desired column.
printf "\033[${col}G"
# Print timestamp in gray.
printf '\e[90m%s\e[0m' "$ts"
# Restore previous cursor position.
printf '\033[u'
}
blehook PREEXEC=show_timestamp

View File

@@ -1,6 +1,6 @@
## Dotfiles ## Dotfiles
Dotfiles configurations for headless Kubuntu linux environments. Be sure to Dotfiles configurations for Kubuntu linux environments. Be sure to
clone recursively if you want to grab updated plugins / submodules included. For clone recursively if you want to grab updated plugins / submodules included. For
example, using Pathogen with Vim to manage plugins requires that the plugin to example, using Pathogen with Vim to manage plugins requires that the plugin to
be installed are cloned to the `~/.vim/bundle/` directory. Cloning recursively be installed are cloned to the `~/.vim/bundle/` directory. Cloning recursively