summaryrefslogtreecommitdiff
path: root/.config/aliases
blob: b52d763d3b2d018bca979ce46c9bbbeca9c41a72 (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
#!/bin/sh

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

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

alias e="nvim"
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 grep="grep --color"

alias ls='exa'
alias lh="exa -1dI '.|..' .*"
alias lt='exa -T'
alias l='exa -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

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 _sudo doas