summaryrefslogtreecommitdiff
path: root/.config/zsh/config.d/alias.zsh
blob: 5248177d3bab000c1011c9fd30d3ccc300173d62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/usr/bin/env zsh

# Colorize grep output (good for log files)
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'

# confirm before overwriting something
alias cp="cp -i"
alias mv='mv -i'
alias rm='rm -i'

alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
alias ..='cd ..'
alias df='df -h'                          # human-readable sizes
alias free='free -m'                      # show sizes in MB


alias ls='exa -la --color=always --group-directories-first'
alias pr='ping rogs.me'
alias my-ip="curl ifconfig.me"
alias emacs="emacsclient -c -a 'emacs'"
alias prometeo="cd ~/code/prometeo/prometeo"
alias prometeo-vpn="sudo wg-quick down wg0 || true && mullvad disconnect && sudo wg-quick up wg0"

# GIT
alias gcd="git checkout develop"

# SSH
alias cloud="ssh root@cloud.rogs.me"

# Python

alias mkv="mkv .venv"

mvenv() {
    deactivate || true
    rm -rf .venv
    mkv
    pip install -r "$1"
}