summaryrefslogtreecommitdiff
path: root/.config/aliases
blob: 7d5ca209455f9ec8058a0e1539be8ecf90066630 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/sh

alias ..="cd .."
alias ...="cd ../../"

alias sudo='doas'
alias sudoedit='doasedit'

alias e="$EDITOR"
alias t='todo.sh'
alias q='exit'
alias rr="source $HOME/.bash_profile"
alias pw='acpi'
alias nw='newsboat -q'
alias mx="pulsemixer"
alias up='uptime -p'
alias wl="wc -l"
alias pk="checkupdates"
alias wt="curl wttr.in/$(cat $HOME/.config/forecast/location)"
alias pub="curl ifconfig.me && echo"
alias grep="grep -i --color"
alias pgrep="pgrep -ia"
alias net="nmcli"
alias vpn="doas wg-quick up adast"
alias novpn="doas wg-quick down adast"
alias hide="swayhide"

alias ls='exa -stype' 
alias lh="ls -1dI '.|..' .*"
alias lt='ls -T'
alias l='ls -la'

alias g='git'
alias gs='git status'
alias ga='git add'
alias gu='git add -u'
alias df='git diff'
alias gl='git log --oneline --decorate --all --graph'

alias c="git --git-dir=$HOME/.config/dots --work-tree=$HOME"
alias cs='c status'
alias ca='c add' 
alias cu='c add -u'
alias cdf='c diff'
alias cl='c log --oneline --decorate --all --graph'

function fzf () { 
    command fzf --color=$(<$XDG_CONFIG_HOME/scheme/fzf-color) "$@"; 
}; 
export -f fzf

_completion_loader git
_completion_loader exa
_completion_loader todo.sh
_completion_loader sudo
_completion_loader nmcli

complete -o bashdefault -o default -o nospace -F __git_wrap__git_main g c
complete -o bashdefault -o default -F _fzf_path_completion e
complete -o bashdefault -o filenames -F _exa ls
complete -F _todo t
complete -F _nmcli net
complete -F _sudo doas