Compare commits
2 Commits
fdf5dcfe9d
...
b2734d8e54
| Author | SHA1 | Date | |
|---|---|---|---|
| b2734d8e54 | |||
| 200f9b5a22 |
@@ -111,4 +111,3 @@ HISTCONTROL=ignoredups:erasedups
|
||||
# When the shell exits, append to the history file instead of overwriting it.
|
||||
shopt -s histappend
|
||||
|
||||
source -- ~/.local/share/blesh/ble.sh
|
||||
|
||||
54
.blerc
54
.blerc
@@ -1,54 +0,0 @@
|
||||
# Insert date-time string within a bash prompt using `\dt<SP>`
|
||||
function blerc/define-sabbrev-dt {
|
||||
ble-sabbrev -m '\dt'='ble/util/assign COMPREPLY "date +%F_%H-%M-%S"'
|
||||
}
|
||||
blehook/eval-after-load complete blerc/define-sabbrev-dt
|
||||
|
||||
# Insert the time within a bash prompt using `\time<SP>`
|
||||
function blerc/define-sabbrev-time {
|
||||
ble-sabbrev -m '\time'='ble/util/assign COMPREPLY "date +%H-%M-%S"'
|
||||
}
|
||||
blehook/eval-after-load complete blerc/define-sabbrev-time
|
||||
|
||||
# Insert the date within a bash prompt using `\date<SP>`
|
||||
# https://github.com/akinomyoga/ble.sh/wiki/Recipes#r1-insert-date-through-sabbrev-date
|
||||
function blerc/define-sabbrev-date {
|
||||
ble-sabbrev -m '\date'='ble/util/assign COMPREPLY "date +%F"'
|
||||
}
|
||||
blehook/eval-after-load complete blerc/define-sabbrev-date
|
||||
|
||||
# Interactive git branch selection with `\branch<SP>`
|
||||
# https://github.com/akinomyoga/ble.sh/wiki/Recipes#r2-insert-git-branch-name-from-menu-through-sabbrev-branch
|
||||
function blerc/define-sabbrev-branch {
|
||||
function blerc/sabbrev-git-branch {
|
||||
ble/util/assign-array COMPREPLY "git branch | sed 's/^\*\{0,1\}[[:blank:]]*//'" 2>/dev/null
|
||||
}
|
||||
ble-sabbrev -m '\branch'=blerc/sabbrev-git-branch
|
||||
}
|
||||
blehook/eval-after-load complete blerc/define-sabbrev-branch
|
||||
|
||||
# Interactive git commit selection with `\commit<SP>`
|
||||
# https://github.com/akinomyoga/ble.sh/wiki/Recipes#r3-insert-git-commit-id-from-menu-through-sabbrev-commit
|
||||
function blerc/define-sabbrev-commit {
|
||||
ble/color/defface blerc_git_commit_id fg=63
|
||||
ble/complete/action#inherit-from blerc_git_commit_id word
|
||||
function ble/complete/action:blerc_git_commit_id/init-menu-item {
|
||||
local ret
|
||||
ble/color/face2g blerc_git_commit_id; g=$ret
|
||||
}
|
||||
function blerc/sabbrev-git-commit {
|
||||
bleopt sabbrev_menu_style=desc-raw
|
||||
bleopt sabbrev_menu_opts=enter_menu
|
||||
|
||||
local format=$'%h \e[1;32m(%ar)\e[m %s - \e[4m%an\e[m\e[1;33m%d\e[m'
|
||||
local arr; ble/util/assign-array arr 'git log --pretty=format:"$format"' &>/dev/null
|
||||
local line hash subject
|
||||
for line in "${arr[@]}"; do
|
||||
builtin read hash subject <<< "$line"
|
||||
ble/complete/cand/yield blerc_git_commit_id "$hash" "$subject"
|
||||
done
|
||||
}
|
||||
ble-sabbrev -m '\commit'='blerc/sabbrev-git-commit'
|
||||
}
|
||||
blehook/eval-after-load complete blerc/define-sabbrev-commit
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
[Animation]
|
||||
AutoOpen=false
|
||||
Frames=17
|
||||
PollInterval=500
|
||||
UseVMAssist=true
|
||||
|
||||
[Appearance]
|
||||
BackgroundColor=#000000
|
||||
BackgroundColorOpacity=0.4
|
||||
Blur=false
|
||||
KeyboardInputBlockIndicatorColor=#FF0000
|
||||
KeyboardInputBlockIndicatorDuration=250
|
||||
Skin=default
|
||||
SkinInstallWithKns=false
|
||||
TerminalHighlightDuration=250
|
||||
Translucency=false
|
||||
|
||||
[Behavior]
|
||||
FocusFollowMouse=false
|
||||
OpenAfterStart=false
|
||||
RememberFullscreen=false
|
||||
|
||||
[Desktop Entry]
|
||||
DefaultProfile=
|
||||
|
||||
[Dialogs]
|
||||
ConfirmQuit=true
|
||||
FirstRun=false
|
||||
|
||||
[Favorite Profiles]
|
||||
Favorites=
|
||||
|
||||
[KFileDialog Settings]
|
||||
detailViewIconSize=0
|
||||
|
||||
[PrintOptions]
|
||||
PrinterFriendly=true
|
||||
ScaleOutput=true
|
||||
|
||||
[Window]
|
||||
DynamicTabTitles=false
|
||||
Height=60
|
||||
KeepAbove=true
|
||||
KeepOpen=true
|
||||
KeepOpenAfterLastSessionCloses=false
|
||||
Position=50
|
||||
Screen=0
|
||||
ShowOnAllDesktops=true
|
||||
ShowSystrayIcon=true
|
||||
ShowTabBar=true
|
||||
ShowTitleBar=true
|
||||
ToggleToFocus=false
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@@ -13,6 +13,8 @@
|
||||
.config/Code/rapid_render.json
|
||||
.config/Code/Network*
|
||||
**/.config/.brightness
|
||||
.local/share/fonts/.uuid
|
||||
|
||||
|
||||
# Byte-compiled / optimized / DLL files
|
||||
*__pycache__/
|
||||
|
||||
6
setup.sh
6
setup.sh
@@ -4,3 +4,9 @@ git submodule update --init
|
||||
. .bash_aliases
|
||||
,init
|
||||
go install github.com/arl/gitmux@latest
|
||||
|
||||
# Install bash line editor for auto completion.
|
||||
git clone --recursive --depth 1 --shallow-submodules https://github.com/akinomyoga/ble.sh.git
|
||||
make -C ble.sh install PREFIX=$(pwd)/.local
|
||||
echo 'source -- ~/.local/share/blesh/ble.sh' >> .bash_aliases
|
||||
rm -rf ble.sh
|
||||
|
||||
Reference in New Issue
Block a user