Skip to content

Commit 60422d7

Browse files
A Dynamic Collection of Shell Scripts with Educational Purpose
1 parent 98e824d commit 60422d7

3 files changed

Lines changed: 5 additions & 0 deletions

File tree

shell_utils.fish

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,6 +170,8 @@ set -e source_path
170170
# Clean up functions
171171
functions -e sourced
172172

173+
bind \ex 'commands; commandline -f execute'
174+
173175
if set -q TERMUX_VERSION
174176
cd /sdcard; or true
175177
end

utilities/dotfiles/bashrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,7 @@ _complete_env_var_bind() {
664664
# Bind to shortcut → and v
665665
bind -x '"°": _complete_env_var_bind'
666666
bind -x '"\ev": _complete_env_var_bind'
667+
bind -x '"\ex": commands'
667668

668669
#complete -o default -o bashdefault -F _filedir_xspec -E code
669670
complete -o default -o bashdefault -F _filedir_xspec -E

utilities/dotfiles/zshrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,8 @@ fi
112112

113113
ZSH_AUTOSUGGEST_STRATEGY=smart
114114

115+
bindkey -s '\ex' 'commands\n'
116+
115117
if [ -d ~/.local/share/zsh/site-functions/ ]; then
116118
for completion in ~/.local/share/zsh/site-functions/*.zsh; do
117119
[ -f "$completion" ] && source "$completion"

0 commit comments

Comments
 (0)