fix wakatime in tem

This commit is contained in:
Alexander Popov 2021-08-09 23:11:20 +03:00
parent e8691f731a
commit d42aa4202d
Signed by: iiiypuk
GPG Key ID: 398FC73478D97286
2 changed files with 13 additions and 5 deletions

View File

@ -1,14 +1,15 @@
# If not running interactively, don't do anything # If not running interactively, don't do anything
[[ $- != *i* ]] && return [[ $- != *i* ]] && return
# SOURCES
source /usr/share/git/completion/git-completion.bash source /usr/share/git/completion/git-completion.bash
source $HOME/.config/bash-wakatime/bash-wakatime.sh source $HOME/.config/bash-wakatime/bash-wakatime.sh
export PATH="$PATH;/home/alex/.local/bin" # PS1
ENDCOLOR="\e[m" ENDCOLOR="\e[m"
PS1="\e[36m\h${ENDCOLOR} \e[35m\W${ENDCOLOR} \$> " PS1="\e[36m\h${ENDCOLOR} \e[35m\W${ENDCOLOR} \$> "
# ALIASES
alias ls='ls --color=auto' alias ls='ls --color=auto'
alias df='df -h' alias df='df -h'
alias du='du -h' alias du='du -h'
@ -16,7 +17,8 @@ alias du='du -h'
alias tardir='tar -czf "../${PWD##*/}.tar.gz"' # tar.gz current dir alias tardir='tar -czf "../${PWD##*/}.tar.gz"' # tar.gz current dir
alias pacman-orphaned='pacman -Rns $(pacman -Qtdq)' # delete orphaned packages (Arch Linux) alias pacman-orphaned='pacman -Rns $(pacman -Qtdq)' # delete orphaned packages (Arch Linux)
# NVM
export NVM_DIR="$HOME/.nvm" export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
export PATH="$PATH;node_modules/.bin" export PATH="$PATH;node_modules/.bin"

View File

@ -1,6 +1,6 @@
## WakaTime ## WakaTime
```bash ```bash
pip3 install wakatime sudo pip3 install wakatime
``` ```
```bash ```bash
@ -14,3 +14,9 @@ source $HOME/.config/bash-wakatime/bash-wakatime.sh
``` ```
Make sure your [API Key](https://wakatime.com/settings/api-key) is in your `~/.wakatime.cfg` file. Make sure your [API Key](https://wakatime.com/settings/api-key) is in your `~/.wakatime.cfg` file.
**Note:**
Need WakaTime install [in system](https://github.com/wakatime/vscode-wakatime/issues/146#issuecomment-895506716) by sudo.
Installing to `$HOME/.local/bin` [not working](https://github.com/wakatime/vscode-wakatime/issues/146).