1
0
mirror of https://github.com/frebib/dotfiles.git synced 2024-06-14 12:57:23 +00:00

Compare commits

...

3 Commits

Author SHA1 Message Date
7b418c2abc
zsh: export secrets in interactive shells 2019-09-15 11:36:03 +01:00
0fc023db91
zsh: add Ctrl+F file search 2019-09-15 11:35:50 +01:00
e17ebf0201
alacritty: update config 2019-09-15 11:32:08 +01:00
2 changed files with 39 additions and 6 deletions

View File

@ -31,6 +31,10 @@ window:
x: 15 x: 15
y: 15 y: 15
# Spread additional padding evenly around the terminal content.
dynamic_padding: false
# Window decorations # Window decorations
# #
# Values for `decorations`: # Values for `decorations`:
@ -38,6 +42,17 @@ window:
# - none: Neither borders nor title bar # - none: Neither borders nor title bar
decorations: full decorations: full
# Startup Mode (changes require restart)
#
# Values for `startup_mode`:
# - Windowed
# - Maximized
# - Fullscreen
#
# Values for `startup_mode` (macOS only):
# - SimpleFullscreen
startup_mode: Windowed
scrolling: scrolling:
# Maximum number of lines in the scrollback buffer. # Maximum number of lines in the scrollback buffer.
# Specifying '0' will disable scrolling. # Specifying '0' will disable scrolling.
@ -66,7 +81,7 @@ scrolling:
# Some applications, like Emacs, rely on knowing about the width of a tab. # Some applications, like Emacs, rely on knowing about the width of a tab.
# To prevent unexpected behavior in these applications, it's also required to # To prevent unexpected behavior in these applications, it's also required to
# change the `it` value in terminfo when altering this setting. # change the `it` value in terminfo when altering this setting.
tabspaces: 8 tabspaces: 4
# Font configuration (changes require restart) # Font configuration (changes require restart)
# #
@ -120,8 +135,9 @@ font:
x: 0 x: 0
y: 0 y: 0
# Display the time it takes to redraw each frame. debug:
render_timer: false # Display the time it takes to redraw each frame.
render_timer: false
# If `true`, bold text is drawn using the bright color variants. # If `true`, bold text is drawn using the bright color variants.
draw_bold_text_with_bright_colors: true draw_bold_text_with_bright_colors: true
@ -148,6 +164,15 @@ colors:
text: '0xeceff1' text: '0xeceff1'
cursor: '0x5294e2' cursor: '0x5294e2'
# Selection colors
#
# Colors which should be used to draw the selection area. If selection
# background is unset, selection color will be the inverse of the cell colors.
# If only text is unset the cell text color will remain the same.
selection:
background: '0x5294e2'
# text: '0xeaeaea'
# Normal colors # Normal colors
normal: normal:
black: '0x333638' black: '0x333638'
@ -367,9 +392,9 @@ key_bindings:
- { key: Q, mods: Command, action: Quit } - { key: Q, mods: Command, action: Quit }
- { key: W, mods: Command, action: Quit } - { key: W, mods: Command, action: Quit }
- { key: Insert, mods: Shift, action: PasteSelection } - { key: Insert, mods: Shift, action: PasteSelection }
- { key: Key0, mods: Control, action: ResetFontSize } - { key: Equals, mods: Control, action: ResetFontSize }
- { key: Equals, mods: Control, action: IncreaseFontSize } - { key: Add, mods: Control|Shift, action: IncreaseFontSize }
- { key: Subtract, mods: Control, action: DecreaseFontSize } - { key: Subtract, mods: Control|Shift, action: DecreaseFontSize }
- { key: Home, chars: "\x1bOH", mode: AppCursor } - { key: Home, chars: "\x1bOH", mode: AppCursor }
- { key: Home, chars: "\x1b[H", mode: ~AppCursor } - { key: Home, chars: "\x1b[H", mode: ~AppCursor }
- { key: End, chars: "\x1bOF", mode: AppCursor } - { key: End, chars: "\x1bOF", mode: AppCursor }

View File

@ -80,6 +80,7 @@ bindkey '^[^[[3~' x-bash-backward-kill-word
bindkey '^[^[[3^' x-bash-backward-kill-word bindkey '^[^[[3^' x-bash-backward-kill-word
bindkey '^[[A' fzf-history-widget # Up (fzf) bindkey '^[[A' fzf-history-widget # Up (fzf)
bindkey '^[[B' fzf-history-widget # Down (fzf) bindkey '^[[B' fzf-history-widget # Down (fzf)
bindkey '^F' fzf-file-widget # Ctrl+F file search (fzf)
bindkey '^[[1;3A' history-substring-search-up # Alt+Up (hsh) bindkey '^[[1;3A' history-substring-search-up # Alt+Up (hsh)
bindkey '^[[1;3B' history-substring-search-down # Alt+Down (hsh) bindkey '^[[1;3B' history-substring-search-down # Alt+Down (hsh)
@ -141,6 +142,13 @@ ZSH_HIGHLIGHT_STYLES[redirection]='fg=cyan,bold'
source "$DOTFILES/aliases" source "$DOTFILES/aliases"
# Source secret keys and values into environment
if [ -f "$XDG_CONFIG_HOME/secrets" ]; then
set -o allexport
source $XDG_CONFIG_HOME/secrets
set +o allexport
fi
# Load some manual plugins # Load some manual plugins
source "$ZSH_DIR/plugins/sudo.zsh" source "$ZSH_DIR/plugins/sudo.zsh"
source "$ZSH_DIR/plugins/fish-theme.zsh" source "$ZSH_DIR/plugins/fish-theme.zsh"