diff options
Diffstat (limited to 'sh/aliases')
-rw-r--r-- | sh/aliases | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/sh/aliases b/sh/aliases new file mode 100644 index 0000000..0aa9869 --- /dev/null +++ b/sh/aliases @@ -0,0 +1,70 @@ +#!/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" + +. $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 md='mkdir -p' +alias ch='cd $HOME' +alias du='du -sxhc' + +#alias nvim='vim' +alias nv='nvim' +alias v='nvim' +alias lf='lfrun' + +## Change utils +alias rm='rm -i' +alias cp='cp -i' + +## 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 ~ && clear && exec $SHELL' +case "$(echo $0 | xargs basename)" in + "zsh") alias e='. $ZDOTDIR/.zshrc' ;; + "ksh"|"oksh") alias e='. ~/.config/kshrc' ;; +esac +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 +alias pq='pkg_info -Q' +alias pu='doas pkg_add -u' +alias pa='doas pkg_add' + +## Runit +#alias ursm='env SVDIR="$HOME/.local/sv/" rsm' |