Add wakatime.cfg and adapt vimrc
This commit is contained in:
parent
4b98cab3cd
commit
3adb1783fb
4 changed files with 24 additions and 1 deletions
2
.bin/.e
2
.bin/.e
|
@ -1,11 +1,13 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
declare -A mapper=(
|
declare -A mapper=(
|
||||||
|
[".e"]="$HOME/.bin/.e"
|
||||||
["alacritty"]="$HOME/.config/alacritty/alacritty.yml"
|
["alacritty"]="$HOME/.config/alacritty/alacritty.yml"
|
||||||
["astronvim"]="$HOME/.config/astronvim/lua/user/init.lua"
|
["astronvim"]="$HOME/.config/astronvim/lua/user/init.lua"
|
||||||
["bash"]="$HOME/.bashrc"
|
["bash"]="$HOME/.bashrc"
|
||||||
["bspwm"]="$HOME/.config/bspwm/bspwmrc"
|
["bspwm"]="$HOME/.config/bspwm/bspwmrc"
|
||||||
["environment"]="$HOME/.config/environment"
|
["environment"]="$HOME/.config/environment"
|
||||||
|
["environment.local"]="$HOME/.config/environment.local"
|
||||||
["git"]="$HOME/.config/git/config"
|
["git"]="$HOME/.config/git/config"
|
||||||
["git-ignore"]="$HOME/.config/git/ignore"
|
["git-ignore"]="$HOME/.config/git/ignore"
|
||||||
["qutebrowser"]="$HOME/.config/qutebrowser/common.py"
|
["qutebrowser"]="$HOME/.config/qutebrowser/common.py"
|
||||||
|
|
|
@ -21,3 +21,10 @@ then
|
||||||
mkdir -p "$HOME/.local/bin"
|
mkdir -p "$HOME/.local/bin"
|
||||||
curl -sS "https://starship.rs/install.sh" | BIN_DIR="$HOME/.local/bin" FORCE=1 sh
|
curl -sS "https://starship.rs/install.sh" | BIN_DIR="$HOME/.local/bin" FORCE=1 sh
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -x "$(command -v envsubst)" ]
|
||||||
|
then
|
||||||
|
wakatime_cfg="$WAKATIME_HOME/.wakatime.cfg"
|
||||||
|
wakatime_tpl="$wakatime_cfg.tpl"
|
||||||
|
envsubst < "$wakatime_tpl" > "$wakatime_cfg"
|
||||||
|
fi
|
||||||
|
|
|
@ -34,7 +34,9 @@ call plug#begin('~/.config/vim/plugged')
|
||||||
Plug 'sheerun/vim-polyglot'
|
Plug 'sheerun/vim-polyglot'
|
||||||
|
|
||||||
" Misc
|
" Misc
|
||||||
Plug 'wakatime/vim-wakatime'
|
if $WAKATIME_API_KEY != ""
|
||||||
|
Plug 'wakatime/vim-wakatime'
|
||||||
|
endif
|
||||||
call plug#end()
|
call plug#end()
|
||||||
|
|
||||||
|
|
||||||
|
|
12
.config/wakatime/.wakatime.cfg.tpl
Normal file
12
.config/wakatime/.wakatime.cfg.tpl
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
[settings]
|
||||||
|
debug=true
|
||||||
|
hide_file_names=false
|
||||||
|
hide_project_folder=true
|
||||||
|
hide_branch_names=false
|
||||||
|
ignore=
|
||||||
|
COMMIT_EDITMSG$
|
||||||
|
PULLREQ_EDITMSG$
|
||||||
|
MERGE_MSG$
|
||||||
|
TAG_EDITMSG$
|
||||||
|
exclude_unknown_project=true
|
||||||
|
api_key=${WAKATIME_API_KEY}
|
Loading…
Reference in a new issue