Compare commits
20 Commits
blesh-time
...
bash-d
| Author | SHA1 | Date | |
|---|---|---|---|
| 50571ed8d3 | |||
| 080fa0894f | |||
| 7075151bf0 | |||
| 4d62b10d00 | |||
| 7461098b1c | |||
| c385d74cac | |||
| a4d2245b50 | |||
| f90cb319ba | |||
| 2efcfabb7b | |||
| 9dcdbf1275 | |||
| 644fca32ed | |||
| 753dc47666 | |||
| f9163b626d | |||
| 1479f3ac37 | |||
| 99be1dfecd | |||
| e7c4fe36bc | |||
| dabfa780df | |||
| 288dc28e07 | |||
| c7f6c0b791 | |||
| f1930f166d |
17
.blerc
17
.blerc
@@ -52,20 +52,3 @@ function 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
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
## Dotfiles
|
||||
|
||||
Dotfiles configurations for Kubuntu linux environments. Be sure to
|
||||
Dotfiles configurations for headless Kubuntu linux environments. Be sure to
|
||||
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
|
||||
be installed are cloned to the `~/.vim/bundle/` directory. Cloning recursively
|
||||
|
||||
Reference in New Issue
Block a user