diff --git a/.bashrc b/.bashrc new file mode 100644 index 0000000..71b7799 --- /dev/null +++ b/.bashrc @@ -0,0 +1,23 @@ +# /etc/skel/.bashrc +# +# This file is sourced by all *interactive* bash shells on startup, +# including some apparently interactive shells such as scp and rcp +# that can't tolerate any output. So make sure this doesn't display +# anything or bad things will happen ! + + +# Test for an interactive shell. There is no need to set anything +# past this point for scp and rcp, and it's important to refrain from +# outputting anything in those cases. +if [[ $- != *i* ]] ; then + # Shell is non-interactive. Be done now! + return +fi + + +# Put your fun stuff here. + +# https://wiki.gentoo.org/wiki/Fish#fish_as_a_default_shell_with_bash_as_the_login_shell +# Use fish in place of bash +# keep this line at the bottom of ~/.bashrc +[ -x /bin/fish ] && SHELL=/bin/fish exec fish diff --git a/.config/kitty/kitty.conf b/.config/kitty/kitty.conf index b546f74..4abed9f 100644 --- a/.config/kitty/kitty.conf +++ b/.config/kitty/kitty.conf @@ -6,12 +6,6 @@ bold_italic_font Iosevka Term SS15 Bold Italic font_size 14 -symbol_map U+23FB-U+23FE,U+2B58,U+E200-U+E2A9,U+E0A0-U+E0A3,U+E0B0-U+E0BF,U+E0C0-U+E0C8,U+E0CC-U+E0CF,U+E0D0-U+E0D2,U+E0D4,U+E700-U+E7C5,U+F000-U+F2E0,U+2665,U+26A1,U+F400-U+F4A8,U+F67C,U+E000-U+E00A,U+F300-U+F313,U+E5FA-U+E62B Symbols Nerd Font Mono - -# Performance - -sync_to_monitor yes - # shell stuff shell_integration enabled diff --git a/.config/kitty/open-actions.conf b/.config/kitty/open-actions.conf index 1d63f96..4a44d2e 100644 --- a/.config/kitty/open-actions.conf +++ b/.config/kitty/open-actions.conf @@ -7,3 +7,14 @@ action launch --type=overlay kitty +kitten icat --hold ${FILE_PATH} protocol file mime inode/directory action launch --type=os-window --cwd $FILE_PATH + +# Open any file with a fragment in vim, fragments are generated +# by the hyperlink_grep kitten and nothing else so far. +protocol file +fragment_matches [0-9]+ +action launch --type=overlay --cwd=current nvim +${FRAGMENT} ${FILE_PATH} + +# Open text files without fragments in the editor +protocol file +mime text/* +action launch --type=overlay --cwd=current ${EDITOR} ${FILE_PATH} diff --git a/.zshrc b/.zshrc index 5e10bbc..055b022 100644 --- a/.zshrc +++ b/.zshrc @@ -42,9 +42,8 @@ if ! command -v bat &> /dev/null ; then zinit light sharkdp/bat fi -zinit as"program" make'!' atclone'./direnv hook zsh > zhook.zsh' \ - atpull'%atclone' pick"direnv" src"zhook.zsh" for \ - direnv/direnv +zinit ice from"gh-r" as"program" mv"direnv* -> direnv" +zinit light direnv/direnv autoload -Uz _zinit (( ${+_comps} )) && _comps[zinit]=_zinit