diff options
author | Matthew Lemon <y@yulqen.org> | 2024-10-14 20:20:06 +0100 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2024-10-16 20:16:19 +0100 |
commit | 0f56054e8f1baf2920bf8ce0b3bbb7b46eb1d4c9 (patch) | |
tree | 027b544918ca9a038e887aebfcba8375c1bf6cd0 | |
parent | e818f9488c4bbd6f1e04dae5e4cbe50a94b004b1 (diff) |
Fixing the keyboard stuff in Bash
-rw-r--r-- | bashrc | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -5,11 +5,11 @@ complete -cf sudo man which _have() { type "$1" &>/dev/null; } _source_if() { [[ -r "$1" ]] && source "$1"; } -_have setxkbmap && test -n "$DISPLAY" && - setxkbmap -option caps:escape &>/dev/null +# _have setxkbmap && test -n "$DISPLAY" && setxkbmap -option caps:escape &>/dev/null _have xset && xset r rate 300 30 -_have xsetkbmap && setxkbmap -option ctrl:nocaps +_have setxkbmap && setxkbmap -option ctrl:nocaps +_have setxkbmap && setxkbmap -layout gb _have pandoc && . <(pandoc --bash-completion) shopt -s globstar @@ -80,6 +80,7 @@ set -o noclobber # aliases alias c='printf "\e[H\e[2J"' +alias xterm-blue='xterm -bg Dark\ Slate\ Blue -fg white' alias temp='cd $(mktemp -d)' alias am='append_to_masterlist' alias annex-sync='cd ~/annex/ && git annex sync && cd -' @@ -364,3 +365,4 @@ ytmp3-split-to-chapters() { yt-dlp -f 'bestaudio' -x --audio-format mp3 --split-chapters -o '%(title)s.%(ext)s' "$1" && cd - || return } . "$HOME/.cargo/env" +eval "$(direnv hook bash)" |