add editorconfig checker and fix files
This commit is contained in:
24
Bash/.bashrc
Normal file
24
Bash/.bashrc
Normal file
@@ -0,0 +1,24 @@
|
||||
# If not running interactively, don't do anything
|
||||
[[ $- != *i* ]] && return
|
||||
|
||||
# SOURCES
|
||||
source /usr/share/git/completion/git-completion.bash
|
||||
source $HOME/.config/bash-wakatime/bash-wakatime.sh
|
||||
|
||||
# PS1
|
||||
ENDCOLOR="\e[m"
|
||||
PS1="\e[36m\h${ENDCOLOR} \e[35m\W${ENDCOLOR} \$> "
|
||||
|
||||
# ALIASES
|
||||
alias ls='ls --color=auto'
|
||||
alias df='df -h'
|
||||
alias du='du -h'
|
||||
|
||||
alias tardir='tar -czf "../${PWD##*/}.tar.gz"' # tar.gz current dir
|
||||
alias pacman-orphaned='pacman -Rns $(pacman -Qtdq)' # delete orphaned packages (Arch Linux)
|
||||
|
||||
# NVM
|
||||
export NVM_DIR="$HOME/.nvm"
|
||||
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
|
||||
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
|
||||
export PATH="$PATH;node_modules/.bin"
|
||||
22
Bash/README.md
Normal file
22
Bash/README.md
Normal file
@@ -0,0 +1,22 @@
|
||||
## WakaTime
|
||||
```bash
|
||||
sudo pip3 install wakatime
|
||||
```
|
||||
|
||||
```bash
|
||||
git clone https://github.com/gjsheep/bash-wakatime.git
|
||||
```
|
||||
|
||||
Include the `bash-wakatime.sh` file in your `~/.bashrc` file.
|
||||
|
||||
```bash
|
||||
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.
|
||||
|
||||
**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).
|
||||
Reference in New Issue
Block a user