Added run_once commands and fzf for micro setup
This commit is contained in:
parent
fe1179d416
commit
ce3a0e5c01
3 changed files with 30 additions and 0 deletions
11
dot_config/private_fish/functions/fzf.fish.tmpl
Normal file
11
dot_config/private_fish/functions/fzf.fish.tmpl
Normal file
|
@ -0,0 +1,11 @@
|
|||
function fzf
|
||||
set -l epoch (date "+%s")
|
||||
set -l file_path $TMPDIR/fzf-$epoch.result
|
||||
command fzf $argv >$file_path
|
||||
if test $status -eq 0 -a -s $file_path
|
||||
cat $file_path
|
||||
end
|
||||
if test -e $file_path
|
||||
rm $file_path
|
||||
end
|
||||
end
|
13
dot_config/run_once_after_00_init.sh.tmpl
Normal file
13
dot_config/run_once_after_00_init.sh.tmpl
Normal file
|
@ -0,0 +1,13 @@
|
|||
# Install micro plugins
|
||||
if [ ! -d ~/.config/micro ]; then
|
||||
if type -q micro; then
|
||||
#micro -plugin install comment
|
||||
micro -plugin install fish
|
||||
micro -plugin install fzf
|
||||
micro -plugin install editorconfig
|
||||
micro -plugin install gotham-colors
|
||||
#set colorscheme gotham
|
||||
micro -plugin install filemanager
|
||||
micro -plugin install nordcolors
|
||||
#set colorscheme nordcolors
|
||||
end
|
6
dot_config/run_once_after_10_fisher.sh.tmpl
Normal file
6
dot_config/run_once_after_10_fisher.sh.tmpl
Normal file
|
@ -0,0 +1,6 @@
|
|||
type fisher &>/dev/null || curl -sL https://git.io/fisher | source && fisher install jorgebucarana/fisher
|
||||
fisher install danhper/fish-ssh-agent
|
||||
fisher install decors/fish-colored-man
|
||||
fisher install jorgebucaran/fisher
|
||||
fisher install patrickf3139/fzf.fish
|
||||
fisher install kidonng/zoxide.fish
|
Loading…
Reference in a new issue