#!/bin/bash

# list
# alias la='~/dotfiles/scripts/git-ll-mac.sh'
# alias cll='clear && ~/dotfiles/scripts/git-ll-mac.sh'
# alias ls='ls -lshHFGX --color=always --group-directories-first'
alias lg='eza -al --icons=always --color=always | grep'
# alias ll='ls -AlshHFGX --color=always --group-directories-first'
# alias lll='ls -AlshHFGX --color=always --group-directories-first | less -R'

alias ls='eza --all'
alias ll='eza -al --icons=always'
alias tree='eza -alT --icons=always'

# move
alias cl='clear'
alias lc='clear'
alias mkdir='mkdir -p'
alias gg='cd $(git rev-parse --show-toplevel)'

# vim
alias sv='sudoedit'
alias v='ge nvim'
alias vb='ge nvim --clean -u ~/dotfiles/vim/init.big.lua'
alias gv='ge nvim -c "Gdiff"'

# system
alias rm="ge command rm -rf"
alias grep='grep --color=always'
alias reload='source ~/dotfiles/bash/bashrc'
alias sudo='sudo env PATH=$PATH'
alias cat='ge ccat'

# git
alias gl='~/dotfiles/scripts/fzf-git-log.sh'
alias gtl='gt log'
alias log='git log --graph --all --oneline --decorate'
alias logs='git log --graph --all --decorate --relative-date'
alias gsmu='git submodule update --remote --merge'
alias gu='git reset HEAD~ --soft'
alias gmt='git mergetool'
alias grpo='git remote prune origin'
alias gds='git diff --staged'
alias gwap='git diff -w --no-color | git apply --cached --ignore-whitespace && git checkout -- . && git reset && git add -p'
alias gca='git commit --amend --no-edit'
alias gpsf='git push --force-with-lease'
alias gcae='git commit --amend'
alias gcn='git commit --no-verify'
alias gpsn='git push --no-verify'
alias gpsfn='git push --force-with-lease --no-verify'
alias gj='~/dotfiles/scripts/jira-branch.sh'
alias gab='git absorb'

# python
# alias da='. deactivate'
# alias iyoga='ipython --profile=yoga'
# alias pa='. $(poetry env info -p)/bin/activate'

# stuff
# alias lock='~/scripts/i3lock-fancy/lock'
# alias installvm='sudo vmware-modconfig --console --install-all'
# alias cal='gcalcli calm'
# alias fakesmtp='sudo java -jar ~/dotfiles/fakeSMTP-1.13.jar'

# docker

# alias dmongo='docker run --rm --name mogno-docker -v mongodbdata:/data/db -p 27017:27017 mongo:3.2-jessie'
# alias dpostgres='docker run --rm --name pg-docker -e POSTGRES_PASSWORD=$POSTGRES_PASSWORD -e POSTGRES_DB=$POSTGRES_DB -p 5432:5432 -v postgresdbdata:/var/lib/postgresql/data postgres:9.5.16-alpine'

# taskwarrior
# alias t='task'
# alias tp='task private'
# alias tl='task list'
# alias ta='task add'
# alias to='taskopen'
# alias td='task done'

# kubernetes
alias kcg='kubectl get pods | grep'

# vpn
alias md='nmcli connection down mapbox'
alias mu='nmcli connection up mapbox'
