Remove more generated fish stuff, more fixes
This commit is contained in:
parent
b09a25cc17
commit
dadb7da642
|
@ -13,6 +13,7 @@ has_command autocutsel && autocutsel -s PRIMARY &
|
||||||
has_command autocutsel && autocutsel -s CLIPBOARD &
|
has_command autocutsel && autocutsel -s CLIPBOARD &
|
||||||
has_command autorandr && autorandr -c
|
has_command autorandr && autorandr -c
|
||||||
has_command redshift && redshift -r -l 39.1:-94.6 -t 6500K:3000K &
|
has_command redshift && redshift -r -l 39.1:-94.6 -t 6500K:3000K &
|
||||||
|
has_command kdeconnect-indicator && kdeconnect-indicator &
|
||||||
|
|
||||||
eval "$(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)"
|
eval "$(/usr/bin/gnome-keyring-daemon --start --components=pkcs11,secrets,ssh)"
|
||||||
export SSH_AUTH_SOCK
|
export SSH_AUTH_SOCK
|
||||||
|
|
|
@ -15,7 +15,8 @@ clear_all_shortcuts yes
|
||||||
|
|
||||||
map ctrl+shift+equal change_font_size all +0.5
|
map ctrl+shift+equal change_font_size all +0.5
|
||||||
map ctrl+shift+minus change_font_size all -0.5
|
map ctrl+shift+minus change_font_size all -0.5
|
||||||
map shift+insert paste_from_selection
|
map shift+insert paste_from_clipboard
|
||||||
|
map ctrl+shift+v paste_from_selection
|
||||||
|
|
||||||
enable_audio_bell yes
|
enable_audio_bell yes
|
||||||
|
|
||||||
|
|
|
@ -66,7 +66,7 @@ Plug 'tmux-plugins/vim-tmux-focus-events' " allow transiti
|
||||||
Plug 'christoomey/vim-tmux-navigator' " allow transitions within tmux
|
Plug 'christoomey/vim-tmux-navigator' " allow transitions within tmux
|
||||||
Plug 'godlygeek/tabular' " align text
|
Plug 'godlygeek/tabular' " align text
|
||||||
Plug 'lytedev/vim-superman' " view man pages with vim
|
Plug 'lytedev/vim-superman' " view man pages with vim
|
||||||
Plug 'tpope/vim-surround' " quickly modify text surrounding objects
|
Plug 'machakann/vim-sandwich' " quickly modify text surrounding objects
|
||||||
Plug 'tpope/vim-speeddating' " vim knows about date-like text objects
|
Plug 'tpope/vim-speeddating' " vim knows about date-like text objects
|
||||||
Plug 'tpope/vim-fugitive' " vim git commands
|
Plug 'tpope/vim-fugitive' " vim git commands
|
||||||
Plug 'michaeljsmith/vim-indent-object' " adds an indentation level text object
|
Plug 'michaeljsmith/vim-indent-object' " adds an indentation level text object
|
||||||
|
|
1
apps/shell/fish/.gitignore
vendored
1
apps/shell/fish/.gitignore
vendored
|
@ -1 +1,2 @@
|
||||||
fish_variables
|
fish_variables
|
||||||
|
functions
|
||||||
|
|
|
@ -32,6 +32,10 @@ function ltl
|
||||||
echo $l
|
echo $l
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function scount -d "Silent count" -w count
|
||||||
|
count $argv > /dev/null
|
||||||
|
end
|
||||||
|
|
||||||
function ltld
|
function ltld
|
||||||
set d $argv[1] .
|
set d $argv[1] .
|
||||||
set -l l ""
|
set -l l ""
|
||||||
|
@ -48,31 +52,42 @@ alias vltl "vim (ltl)"
|
||||||
alias cdltl "cd (ltld)"
|
alias cdltl "cd (ltld)"
|
||||||
alias ltlv vltl
|
alias ltlv vltl
|
||||||
|
|
||||||
# navigation aliases
|
function d -w cd
|
||||||
function c
|
if scount $argv
|
||||||
if count $argv
|
cd $argv || exit 1
|
||||||
cd $NICE_HOME && cd $argv[1] || exit 1
|
|
||||||
else
|
else
|
||||||
cd $NICE_HOME || exit 1
|
cd $NICE_HOME || exit 1
|
||||||
end
|
end
|
||||||
|
la
|
||||||
end
|
end
|
||||||
alias cd.. "cd .."
|
|
||||||
alias cdd "cd $DOTFILES_PATH" # go to dotfiles
|
# navigation aliases
|
||||||
alias cde "cd $ENV_PATH" # go to env dotfiles
|
function c -w cd
|
||||||
alias cdc "cd $XDG_CONFIG_HOME" # go to ~/.config
|
if scount $argv
|
||||||
alias cdn "cd $NOTES_PATH"
|
cd $NICE_HOME && d $argv || exit 1
|
||||||
alias cdl "cd $NICE_HOME/dl"
|
else
|
||||||
alias cdg "cd $NICE_HOME/games"
|
d $NICE_HOME
|
||||||
|
end
|
||||||
|
la
|
||||||
|
end
|
||||||
|
|
||||||
|
alias cd.. "d .."
|
||||||
|
alias cdd "d $DOTFILES_PATH" # go to dotfiles
|
||||||
|
alias cde "d $ENV_PATH" # go to env dotfiles
|
||||||
|
alias cdc "d $XDG_CONFIG_HOME" # go to ~/.config
|
||||||
|
alias cdn "d $NOTES_PATH"
|
||||||
|
alias cdl "d $NICE_HOME/dl"
|
||||||
|
alias cdg "d $NICE_HOME/games"
|
||||||
|
|
||||||
# quick parent-directory aliases
|
# quick parent-directory aliases
|
||||||
alias .. "cd .."
|
alias .. "d .."
|
||||||
alias ... "cd ../.."
|
alias ... "d ../.."
|
||||||
alias .... "cd ../../.."
|
alias .... "d ../../.."
|
||||||
alias ..... "cd ../../../.."
|
alias ..... "d ../../../.."
|
||||||
alias ...... "cd ../../../../.."
|
alias ...... "d ../../../../.."
|
||||||
alias ....... "cd ../../../../../.."
|
alias ....... "d ../../../../../.."
|
||||||
alias ........ "cd ../../../../../../.."
|
alias ........ "d ../../../../../../.."
|
||||||
alias ......... "cd ../../../../../../../.."
|
alias ......... "d ../../../../../../../.."
|
||||||
|
|
||||||
# tmux aliases
|
# tmux aliases
|
||||||
# TODO: see if this can be worked around?
|
# TODO: see if this can be worked around?
|
||||||
|
@ -89,7 +104,7 @@ alias tm "tmux attach -t music || tmux new -s music"
|
||||||
# git aliases
|
# git aliases
|
||||||
# TODO: make these git aliases in the gitconfig?
|
# TODO: make these git aliases in the gitconfig?
|
||||||
function g
|
function g
|
||||||
if count $argv >/dev/null
|
if scount $argv
|
||||||
git $argv
|
git $argv
|
||||||
else
|
else
|
||||||
git status
|
git status
|
||||||
|
@ -158,6 +173,11 @@ alias mail "mutt"
|
||||||
# fsw aliases
|
# fsw aliases
|
||||||
alias fsw-mix-test 'fsw "mix test" ./**/*.{ex,exs,erl,hrl,xrl,yrl}'
|
alias fsw-mix-test 'fsw "mix test" ./**/*.{ex,exs,erl,hrl,xrl,yrl}'
|
||||||
|
|
||||||
|
function field
|
||||||
|
not scount $argv && echo "No field index provided"; exit 1
|
||||||
|
awk "{print \$$argv[1]}"
|
||||||
|
end
|
||||||
|
|
||||||
# weechat aliases
|
# weechat aliases
|
||||||
function chat
|
function chat
|
||||||
set -l pass (pass config/weechat-passphrase | head -n 1)
|
set -l pass (pass config/weechat-passphrase | head -n 1)
|
||||||
|
|
|
@ -4,8 +4,6 @@ set -Ux XDG_CONFIG_HOME $HOME/.config
|
||||||
set -Ux DOTFILES_PATH $XDG_CONFIG_HOME/dotfiles
|
set -Ux DOTFILES_PATH $XDG_CONFIG_HOME/dotfiles
|
||||||
set -Ux ENV_PATH $HOME/.env
|
set -Ux ENV_PATH $HOME/.env
|
||||||
|
|
||||||
function source_if_exists; test -f $ENV_PATH/$argv[1] && source $argv[1]; end
|
|
||||||
function maybe_source_env_file; source_if_exists $ENV_PATH/$argv[1]; end
|
|
||||||
function has_command; command -v $argv[1] 2>&1 >/dev/null; end
|
function has_command; command -v $argv[1] 2>&1 >/dev/null; end
|
||||||
|
|
||||||
source $DOTFILES_PATH/apps/shell/fish/paths.fish
|
source $DOTFILES_PATH/apps/shell/fish/paths.fish
|
||||||
|
@ -33,9 +31,10 @@ end
|
||||||
set -Ux LS_COLORS 'ow=01;36;40'
|
set -Ux LS_COLORS 'ow=01;36;40'
|
||||||
|
|
||||||
# load a per-device config last so anything can be overridden
|
# load a per-device config last so anything can be overridden
|
||||||
# TODO: this does not work quite right for fish?
|
for cf in config.fish .hidden/config.fish
|
||||||
maybe_source_env_file config.fish
|
set f $ENV_PATH/$cf
|
||||||
maybe_source_env_file .hidden/config.fish
|
test -f $f && source $f
|
||||||
|
end
|
||||||
|
|
||||||
mkdir -p $NOTES_PATH $USER_LOGS_PATH $SCROTS_PATH
|
mkdir -p $NOTES_PATH $USER_LOGS_PATH $SCROTS_PATH
|
||||||
|
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
function fish_user_key_bindings
|
|
||||||
fzf_key_bindings
|
|
||||||
end
|
|
|
@ -1 +0,0 @@
|
||||||
/home/daniel/.home/.fzf/shell/key-bindings.fish
|
|
3
env/desktop/bash
vendored
3
env/desktop/bash
vendored
|
@ -1,3 +1,4 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
. "$ENV_PATH/.hidden/bash"
|
hb="$ENV_PATH/.hidden/bash"
|
||||||
|
[ -f "$hb" ] && . "$hb"
|
||||||
|
|
13
env/desktop/config.fish
vendored
13
env/desktop/config.fish
vendored
|
@ -1,6 +1,13 @@
|
||||||
#!/usr/bin/env fish
|
#!/usr/bin/env fish
|
||||||
|
|
||||||
echo whee
|
# TODO: completion
|
||||||
function I_AM_HELP
|
function src-hidden-dir
|
||||||
help
|
not scount $argv && echo "No directory specified" && exit 1
|
||||||
|
set f $ENV_PATH/.hidden/fish.d/$argv[1]/config.fish
|
||||||
|
echo "Checking $f..."
|
||||||
|
test -f $f && source $f
|
||||||
end
|
end
|
||||||
|
|
||||||
|
set hc $ENV_PATH/.hidden/config.fish
|
||||||
|
test -f $hc && source $hc
|
||||||
|
|
||||||
|
|
Reference in a new issue