summaryrefslogtreecommitdiff
path: root/fedora/.config
diff options
context:
space:
mode:
Diffstat (limited to 'fedora/.config')
-rw-r--r--fedora/.config/bash/autocomplete.bash4
-rw-r--r--fedora/.config/bash/bashrc7
-rw-r--r--fedora/.config/bash/keymaps.bash2
-rw-r--r--fedora/.config/bash/scripts.bash18
4 files changed, 28 insertions, 3 deletions
diff --git a/fedora/.config/bash/autocomplete.bash b/fedora/.config/bash/autocomplete.bash
index 0aeeedd..3ee6183 100644
--- a/fedora/.config/bash/autocomplete.bash
+++ b/fedora/.config/bash/autocomplete.bash
@@ -147,7 +147,7 @@ expand_alias_and_accept_line() {
# Bind Space to our function so pressing space triggers alias-expansion behavior.
# Use bind -x to call expand_alias_space (it will both expand and insert space when appropriate).
# WARNING: this overrides normal space key behavior; our function handles insertion.
-bind -x '" "':expand_alias_space
+# bind -x '" "':expand_alias_space
# optional: bind Ctrl-Space to the same (a bypass key like zsh had)
# Many terminals send "\C-@" for ctrl-space; try both common sequences:
@@ -169,7 +169,7 @@ _bash_accept_line() {
# (This is a conservative behavior to avoid interfering unexpectedly.)
return 0
}
-bind -x '"\C-m":_bash_accept_line'
+#bind -x '"\C-m":_bash_accept_line'
# ---------- helper: background starter ----------
background() {
diff --git a/fedora/.config/bash/bashrc b/fedora/.config/bash/bashrc
index 95a1c38..ec1cc46 100644
--- a/fedora/.config/bash/bashrc
+++ b/fedora/.config/bash/bashrc
@@ -163,6 +163,13 @@ bind '"\C-g":"lfcd\n"'
eval "$(dircolors)"
+[ -f "$HOME/.config/bash/git.bash" ] && . "$HOME/.config/bash/git.bash"
+[ -f "$HOME/.config/bash/p10k.bash" ] && . "$HOME/.config/bash/p10k.bash"
+[ -f "$HOME/.config/bash/autocomplete.bash" ] && . "$HOME/.config/bash/autocomplete.bash"
+[ -f "$HOME/.config/bash/scripts.bash" ] && . "$HOME/.config/bash/scripts.bash"
+[ -f "$HOME/.config/bash/keymaps.bash" ] && . "$HOME/.config/bash/keymaps.bash"
+[ -f "$HOME/.config/bash/plugins.bash" ] && . "$HOME/.config/bash/plugins.bash"
+[ -f "$HOME/.config/bash/packages.bash" ] && . "$HOME/.config/bash/packages.bash"
[ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/aliasrc" ] && . "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/aliasrc"
[ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/git-aliasrc" ] && . "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/git-aliasrc"
[ -f "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/shortcutrc" ] && . "${XDG_CONFIG_HOME:-${HOME}/.config}/shell/shortcutrc"
diff --git a/fedora/.config/bash/keymaps.bash b/fedora/.config/bash/keymaps.bash
index 91b3cad..bbe27a0 100644
--- a/fedora/.config/bash/keymaps.bash
+++ b/fedora/.config/bash/keymaps.bash
@@ -193,7 +193,7 @@ stty -ixon 2>/dev/null || true
bind -x '"\C-s":sudo_command_line' # ^S (stty -ixon to avoid flow control)
# tmux left pane (bind ESC + backslash)
-bind -x $'\e\\':tmux_left_pane
+#bind -x '\e\\':tmux_left_pane
# ---------- mappings of the original bindkey -s lines (u removed) ----------
bind -x '"\C-b":__bc' # will call function __bc below
diff --git a/fedora/.config/bash/scripts.bash b/fedora/.config/bash/scripts.bash
index 76644e3..400265d 100644
--- a/fedora/.config/bash/scripts.bash
+++ b/fedora/.config/bash/scripts.bash
@@ -155,6 +155,24 @@ mkdt() {
###########################################################################################
###########################################################################################
+### --- CURSOR --- ###
+# vi-mode cursor change
+function update_cursor {
+ if [[ $READLINE_LINE == * ]]; then
+ if [[ $READLINE_POINT -eq 0 ]]; then
+ echo -ne '\e[6 q' # insert mode
+ else
+ echo -ne '\e[2 q' # command mode
+ fi
+ fi
+}
+
+# vi-command, vi-insert 모드 hook 등록
+bind -m vi-insert '":": "\C-o update_cursor"'
+bind -m vi-command '":": "\C-o update_cursor"'
+
+###########################################################################################
+###########################################################################################
### --- DISTRIBUTION --- ###
# Show the current distribution
distribution() {