fix shit code!

This commit is contained in:
Pratyush Desai 2023-01-21 03:50:29 +05:30
parent 0a7b0fb5e8
commit b1c3837516
Signed by: pratyush
GPG Key ID: DBA5BB7505946FAD

View File

@ -1,4 +1,4 @@
# #!/bin/bash
# #
# #
# Please include these in the `.bashrc` # Please include these in the `.bashrc`
@ -6,7 +6,7 @@
# ~/.bash_aliases # ~/.bash_aliases
# #
alias svim='sudo -E -s nvim'
# dotfiles # dotfiles
alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
@ -15,13 +15,18 @@ alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'
#alias cfgp2om="config push -u origin master" #alias cfgp2om="config push -u origin master"
# Assumes `exa` package is installed # Assumes `exa` package is installed
alias ll='exa -l' alias l='exa -l'
alias la='exa -la' alias la='exa -la'
alias lh='exa -lha' alias lh='exa -lha'
alias ltnew='exa -lrah --sort=newest --git' alias ltnew='exa -lrah --sort=newest --git'
alias lg='exa -Ga' alias lg='exa -Ga'
alias ltr='exa --tree --level=3 --long' alias ltr='exa --tree --level=3 --long'
# utils
alias cat='bat'
# Add a function to open ranger in either a new tmux # Add a function to open ranger in either a new tmux
# or a new window if already in a tmux. # or a new window if already in a tmux.
# Note: Refuse to Nest!!! # Note: Refuse to Nest!!!
@ -32,14 +37,19 @@ alias gh='history|grep'
# count files in directory # count files in directory
alias count='find . -type f | wc -l' alias count='find . -type f | wc -l'
# shareutils ############
# shareutils - uploads and pastes
# privatebin
#alias pbsend="
#alias hugz="curl -sT '$*' https://hugz.io"
alias uploadhgz='curl -sT - https://hugz.io/' # upload alias uploadhgz='curl -sT - https://hugz.io/' # upload
alias ixio="curl -F 'f:1=<-' ix.io" # pipe output to ix.io alias ixio="curl -F 'f:1=<-' ix.io" # pipe output to ix.io
alias termbin="nc termbin.com 9999" # needs netcat alias termbin="nc termbin.com 9999" # needs netcat
## commit faster, you git! ## commit faster, you git!
alias gconsolidate="git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done" #alias gconsolidate="git branch -r | grep -v '\->' | while read remote; do git branch --track '${remote#origin/}' '$remote'; done"
alias gad='git add' alias gad='git add'
alias gst='git status' alias gst='git status'
alias gfa='git fetch --all --prune' alias gfa='git fetch --all --prune'
@ -67,4 +77,39 @@ alias aurepwkv='aureport --start this-week --key --summary'
alias aurfilist='ausearch --start this-week -k access --raw | aureport --file --summary' alias aurfilist='ausearch --start this-week -k access --raw | aureport --file --summary'
# check the user accounts implicated # check the user accounts implicated
alias aurlusfi='ausearch --start this-week -k access --raw | aureport --user --summary' alias aurlusfi='ausearch --start this-week -k access --raw | aureport --user --summary'
~
# kitty
# needs ImageMagick
alias icat="kitty +kitten icat"
# diff
alias d="kitty +kitten diff"
# hyperlinked grep
alias hg="kitty +kitten hyperlinked_grep"
# hugz.io
# Packaging
#
# Open Build Service
#
# osc
alias oscb="osc build --ccache"
alias oscsd="osc service runall download_files"
# folder travel
alias cdsof="cd /home/mogad0n/litter/Software"
alias cdpic="cd /home/mogad0n/Pictures"
alias yaygitsyu="pacman -Qmq | grep -Ee '-(cvs|svn|git|hg|bzr|darcs)$' | yay -S --needed -"