Compare commits
3 Commits
f90cb319ba
...
blesh-time
| Author | SHA1 | Date | |
|---|---|---|---|
| b0a87fb014 | |||
| 6e0d969d78 | |||
| 84018dbeec |
17
.blerc
17
.blerc
@@ -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
|
||||||
|
|||||||
@@ -16,6 +16,9 @@ set -g @scroll-speed-num-lines-per-scroll 2
|
|||||||
set -g @plugin 'tmux-plugins/tpm'
|
set -g @plugin 'tmux-plugins/tpm'
|
||||||
set -g @plugin 'tmux-plugins/tmux-yank'
|
set -g @plugin 'tmux-plugins/tmux-yank'
|
||||||
set -g @yank_action 'copy-pipe-no-clear'
|
set -g @yank_action 'copy-pipe-no-clear'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-resurrect'
|
||||||
|
set -g @plugin 'tmux-plugins/tmux-continuum'
|
||||||
|
set -g @continuum-restore 'on'
|
||||||
bind -T copy-mode C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
|
bind -T copy-mode C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
|
||||||
bind -T copy-mode-vi C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
|
bind -T copy-mode-vi C-c send -X copy-pipe-no-clear "xsel -i --clipboard"
|
||||||
# Other examples:
|
# Other examples:
|
||||||
|
|||||||
67
README.md
67
README.md
@@ -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
|
||||||
@@ -14,7 +14,7 @@ screenshot below
|
|||||||
|
|
||||||
### Install
|
### Install
|
||||||
|
|
||||||
Installation instructions -
|
Installation instructions
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
git clone --recursive https://github.com/shaunrd0/dot
|
git clone --recursive https://github.com/shaunrd0/dot
|
||||||
@@ -24,6 +24,19 @@ mv ~/.bashrc ~/.bashrc.backup
|
|||||||
stow . -t ~
|
stow . -t ~
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To uninstall
|
||||||
|
|
||||||
|
```bash
|
||||||
|
stow -D . -t ~
|
||||||
|
mv ~/.bashrc.backup ~/.bashrc
|
||||||
|
```
|
||||||
|
|
||||||
|
If you have files other than `~/.bashrc` that conflict with these
|
||||||
|
configurations,
|
||||||
|
be sure to back them up so you can restore to your original state. If you do not
|
||||||
|
provide the `-t` flag to stow, the files will be symlinked within the parent
|
||||||
|
of your current directory.
|
||||||
|
|
||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
You can run these dotfiles in a docker container -
|
You can run these dotfiles in a docker container -
|
||||||
@@ -35,31 +48,14 @@ docker build -t dot .
|
|||||||
docker run -it dot bash
|
docker run -it dot bash
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Note that some features may not work properly in the container, like system
|
||||||
|
clipboard integration with vim or certain font icons used in themes. Still, the
|
||||||
|
base configurations work, and using the container as a clean environment is
|
||||||
|
useful for testing things such as installation instructions for a personal
|
||||||
|
project.
|
||||||
|
|
||||||
### Configurations
|
### Configurations
|
||||||
|
|
||||||
#### Vim
|
|
||||||
|
|
||||||
| Plugin | Description | Repository |
|
|
||||||
|---------------------|--------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
|
|
||||||
| tmux plugin manager | Manages tmux plugins directly from GitHub. | [https://github.com/tmux-plugins/tpm](https://github.com/tmux-plugins/tpm) |
|
|
||||||
| tmux-sensible | Provides improved sane defaults for tmux behavior and usability. | [https://github.com/tmux-plugins/tmux-sensible](https://github.com/tmux-plugins/tmux-sensible) |
|
|
||||||
| tmux-resurrect | Saves and restores tmux sessions, panes, and layouts between restarts. | [https://github.com/tmux-plugins/tmux-resurrect](https://github.com/tmux-plugins/tmux-resurrect) |
|
|
||||||
| tmux-continuum | Automatically saves tmux sessions and can restore them on system reboot. | [https://github.com/tmux-plugins/tmux-continuum](https://github.com/tmux-plugins/tmux-continuum) |
|
|
||||||
| xclip | Integrates tmux copy mode with the system clipboard under X11. | [https://github.com/astrand/xclip](https://github.com/astrand/xclip) |
|
|
||||||
|
|
||||||
#### Tmux
|
|
||||||
|
|
||||||
| Plugin | Description | Repository |
|
|
||||||
|--------------------|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|
|
|
||||||
| Colorizer | Highlights color codes in Vim buffers (useful for CSS/ web). | [https://github.com/chrisbra/Colorizer](https://github.com/chrisbra/Colorizer) |
|
|
||||||
| ALE | Asynchronous Lint Engine – linting & fixing in Vim asynchronously. | [https://github.com/dense-analysis/ale](https://github.com/dense-analysis/ale) |
|
|
||||||
| clang_complete | Auto-completion support for C/C++ using libclang. | [https://github.com/xavierd/clang_complete](https://github.com/xavierd/clang_complete) |
|
|
||||||
| supertab | Expand completions using `<Tab>` in insert mode. | [https://github.com/ervandew/supertab](https://github.com/ervandew/supertab) |
|
|
||||||
| unicode.vim | Unicode helpers (insert and inspect Unicode characters). | [https://github.com/chrisbra/unicode.vim](https://github.com/chrisbra/unicode.vim) |
|
|
||||||
| vim-airline | Lean and fast status/tabline for Vim. | [https://github.com/vim-airline/vim-airline](https://github.com/vim-airline/vim-airline) |
|
|
||||||
| vim-airline-themes | Additional themes for vim-airline. | [https://github.com/vim-airline/vim-airline-themes](https://github.com/vim-airline/vim-airline-themes) |
|
|
||||||
| vim-signify | Shows VCS (git/hg) changes in the sign column. | [https://github.com/mhinz/vim-signify](https://github.com/mhinz/vim-signify) |
|
|
||||||
|
|
||||||
#### Utilities
|
#### Utilities
|
||||||
|
|
||||||
| Tool | Description | Repository |
|
| Tool | Description | Repository |
|
||||||
@@ -70,3 +66,24 @@ docker run -it dot bash
|
|||||||
| `.stow-local-ignore` | Stow configuration file that excludes specific files or patterns from being symlinked during deployment. | [https://www.gnu.org/software/stow/manual/stow.html](https://www.gnu.org/software/stow/manual/stow.html) |
|
| `.stow-local-ignore` | Stow configuration file that excludes specific files or patterns from being symlinked during deployment. | [https://www.gnu.org/software/stow/manual/stow.html](https://www.gnu.org/software/stow/manual/stow.html) |
|
||||||
| `setup.sh` | Bootstrap script that automates symlink setup and environment initialization. | (Repository-local script) |
|
| `setup.sh` | Bootstrap script that automates symlink setup and environment initialization. | (Repository-local script) |
|
||||||
|
|
||||||
|
#### Tmux
|
||||||
|
|
||||||
|
| Plugin | Description | Repository |
|
||||||
|
|---------------------|--------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------|
|
||||||
|
| tmux plugin manager | Manages tmux plugins directly from GitHub. | [https://github.com/tmux-plugins/tpm](https://github.com/tmux-plugins/tpm) |
|
||||||
|
| tmux-resurrect | Saves and restores tmux sessions, panes, and layouts between restarts. | [https://github.com/tmux-plugins/tmux-resurrect](https://github.com/tmux-plugins/tmux-resurrect) |
|
||||||
|
| tmux-continuum | Automatically saves tmux sessions and can restore them on system reboot. | [https://github.com/tmux-plugins/tmux-continuum](https://github.com/tmux-plugins/tmux-continuum) |
|
||||||
|
| xclip | Integrates tmux copy mode with the system clipboard under X11. | [https://github.com/astrand/xclip](https://github.com/astrand/xclip) |
|
||||||
|
|
||||||
|
#### Vim
|
||||||
|
|
||||||
|
| Plugin | Description | Repository |
|
||||||
|
|--------------------|--------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------|
|
||||||
|
| Colorizer | Highlights color codes in Vim buffers (useful for CSS/ web). | [https://github.com/chrisbra/Colorizer](https://github.com/chrisbra/Colorizer) |
|
||||||
|
| ALE | Asynchronous Lint Engine - linting & fixing in Vim asynchronously. | [https://github.com/dense-analysis/ale](https://github.com/dense-analysis/ale) |
|
||||||
|
| clang_complete | Auto-completion support for C/C++ using libclang. | [https://github.com/xavierd/clang_complete](https://github.com/xavierd/clang_complete) |
|
||||||
|
| supertab | Expand completions using `<Tab>` in insert mode. | [https://github.com/ervandew/supertab](https://github.com/ervandew/supertab) |
|
||||||
|
| unicode.vim | Unicode helpers (insert and inspect Unicode characters). | [https://github.com/chrisbra/unicode.vim](https://github.com/chrisbra/unicode.vim) |
|
||||||
|
| vim-airline | Lean and fast status/tabline for Vim. | [https://github.com/vim-airline/vim-airline](https://github.com/vim-airline/vim-airline) |
|
||||||
|
| vim-airline-themes | Additional themes for vim-airline. | [https://github.com/vim-airline/vim-airline-themes](https://github.com/vim-airline/vim-airline-themes) |
|
||||||
|
| vim-signify | Shows VCS (git/hg) changes in the sign column. | [https://github.com/mhinz/vim-signify](https://github.com/mhinz/vim-signify) |
|
||||||
|
|||||||
Reference in New Issue
Block a user