diff options
author | zachir <zachir@librem.one> | 2022-10-05 22:00:32 -0500 |
---|---|---|
committer | zachir <zachir@librem.one> | 2022-10-05 22:00:32 -0500 |
commit | f39d735e2ba625a31a7dbf6fb8bdd62501379ad1 (patch) | |
tree | d17c96714c930e0b8bc75616cc9c81b961ed5aa0 /sh/aliases |
Initial Commit
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' |