blob: 1b6606e015b51319618430eb13c018dd25683f8b (
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
#!/bin/sh
## CD Ups
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias .....='cd ../../../..'
alias ......='cd ../../../../..'
alias .......='cd ../../../../../..'
alias ........='cd ../../../../../../..'
COLOR_FLAGS_GNU="--color='auto' --group-directories-first"
[ -f $HOME/.config/sh/weather ] && . $HOME/.config/sh/weather
## Base Utils
case `uname -s` in
"OpenBSD")
alias ls="ls -h"
;;
"Linux")
alias ls="ls -h $COLOR_FLAGS_GNU"
;;
esac
alias ll='ls -l'
alias la='ls -A'
alias lla='ls -lA'
alias lb='lsblk'
alias md='mkdir -p'
alias ch='cd $HOME'
#alias nvim='vim'
alias nv='nvim'
alias v='nvim'
## Change utils
alias rm='rm -i'
alias cp='cp -i'
alias srsync='rsync -KPUcrtvyz'
## git stuff
alias gs='git status'
alias commit='git commit -S -m'
alias ga='git add -A'
alias gd='git diff'
## Single Chars
alias r='cd ~ && reset && exec $SHELL'
alias q='exit'
alias c='clear'
alias m='make'
## Programming
# Rust
alias crr='cargo run --release'
alias cbr='cargo build --release'
## Arch Linux aliases --sudoloop
#alias yu='yay -Syu --noconfirm'
## OpenBSD
case `uname -s` in
"OpenBSD")
alias ps='pkg_info -Q'
alias pu='doas pkg_add -u'
alias pi='doas pkg_add'
;;
"Linux")
alias ps='yay -Ss'
alias pu='yay -Syu'
alias pi='yay -S'
;;
esac
## Systemctl
alias us='systemctl --user'
alias s='sudo systemctl'
## Runit
#alias ursm='env SVDIR="$HOME/.local/sv/" rsm'
# XDG dirs fix
alias svn="svn --config-dir \"$XDG_CONFIG_HOME\"/subversion"
alias adb="HOME="$XDG_DATA_HOME"/android adb"
alias wget="wget --hsts-file=\"$XDG_DATA_HOME/wget-hsts\""
alias yarn="yarn --use-yarnrc $XDG_CONFIG_HOME/yarn/config"
|