diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2022-08-12 07:10:45 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2022-08-12 07:10:45 +0530 |
commit | 90f122048edf5247d88dd6caf3f33336d3eb1f2b (patch) | |
tree | 031365043fa04024ae0f2e201f1103a8536ee279 /.bashrc | |
parent | de968fe27675c87473b81d717eb8440ea59a36e4 (diff) |
alias addition + changes
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 55 |
1 files changed, 29 insertions, 26 deletions
@@ -43,32 +43,35 @@ export XAUTHORITY="$XDG_RUNTIME_DIR/Xauthority" # Load aliases alias \ - v="vim" \ - sv="sudo vim" \ - r="ranger" \ + v='vim' \ + sv='sudo vim' \ + r='ranger' \ ranger='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'\ - sr="sudo ranger" \ - space="ncdu" \ - j="journalctl -xe" - h="cat $HISTFILE|fzf" \ - sha="shasum -a 256" \ - untar="tar -zxvf" \ - untar2="tar -xvf" \ - cp="cp -iv" \ - mv="mv -iv" \ - mkd="mkdir -pv" \ - myip="curl ipinfo.io/ip && echo """ \ - rm="trash -v" \ - listdel="trash-list" \ - restore="trash-restore" \ - empty="trash-empty" \ - sitedir="cd /var/www" \ - gitdir="cd /var/git" + sr='sudo ranger' \ + space='ncdu' \ + c='clear' \ + j='journalctl -xe' \ + ls='ls --color=auto' \ + grep='grep --color=auto' \ + sha='shasum -a 256' \ + untar='tar -zxvf' \ + untar2='tar -xvf' \ + cp='cp -iv' \ + mv='mv -iv' \ + mkd='mkdir -pv' \ + myip='curl ipinfo.io/ip && echo ""' \ + oports='netstat -tulanp' + rm='trash -v' \ + listdel='trash-list' \ + restore='trash-restore' \ + empty='trash-empty' \ + sitedir='cd /var/www' \ + gitdir='cd /var/git' #git alias \ - g1="git add ." \ - g2="git commit -S -m" \ - g3="git push origin HEAD --force" \ - gs="git status" \ - gd="git diff --staged" \ - glg="git log --graph --abbrev-commit --decorate --format=format:'%C(bold green)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold yellow)(%ar)%C(reset)%C(auto)%d%C(reset)%n''%C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all" + g1='git add .' \ + g2='git commit -S -m' \ + g3='git push origin HEAD --force' \ + gs='git status' \ + gd='git diff --staged' \ + glg='git log --graph --abbrev-commit --decorate --format=format:'%C(bold green)%h%C(reset) - %C(bold cyan)%aD%C(reset) %C(bold yellow)(%ar)%C(reset)%C(auto)%d%C(reset)%n''%C(white)%s%C(reset) %C(dim white)- %an%C(reset)' --all' |