diff options
| author | Xiao Pan <gky44px1999@gmail.com> | 2024-05-05 01:50:56 -0700 | 
|---|---|---|
| committer | Xiao Pan <gky44px1999@gmail.com> | 2024-05-05 01:50:56 -0700 | 
| commit | a3ee6fce9072653be42410d218cd954bdfd7e8ec (patch) | |
| tree | 5ae02b0c0c45653052cd85e74dcbcb7fbf233e42 /home | |
| parent | 36bb58e998f118e37e3d08e61ea679e7d36634ff (diff) | |
similar .bashrc for all computers, easier to cherry-pick with ccp
Diffstat (limited to 'home')
| -rw-r--r-- | home/xyz/.bashrc | 31 | 
1 files changed, 30 insertions, 1 deletions
diff --git a/home/xyz/.bashrc b/home/xyz/.bashrc index 4d81b50f..f011eba6 100644 --- a/home/xyz/.bashrc +++ b/home/xyz/.bashrc @@ -61,6 +61,7 @@ alias gcd='git clone --depth=1'  alias gr='grep --color=auto -i'  alias grr='grep --color=auto -iIR'  alias h=htop +alias i=nsxiv  alias j=journalctl  alias l='ls --color=auto -A --group-directories-first'  alias ll='ls --color=auto -lAh --group-directories-first' @@ -75,8 +76,22 @@ alias qre='qrencode -t utf8i -m 1'  alias r='rem -cu+2 -@'  # https://askubuntu.com/a/22043  alias s='sudo ' +alias sa='ssh-add -l || ssh-add' +alias sca='ssh ca'  alias se='sudo -E ' +alias sia='ssh ia' +alias sp='ssh pp'  alias spd='speedtest; librespeed-cli' +alias sst='ssh studio' +# \" to consider $HOME contain space, need \ else " will be expanded locally, need \$ else $HOME will expand locally +# can test with: alias mytest='ssh studio for i in \"\$SSH_CONNECTION\"\; do echo \$i\; echo a\; done' +alias sstm='ssh -t -- studio mpra -c \"\$HOME/programs/repos/fly/any/fsh-git\"' +# from `man remind`: "Note that you can omit the reminder type, in which case it defaults to MSG" +# can test this mess with `alias tt='echo "\$haha \"lala\""'` +alias sun='printf "set \$Longitude \"-121.89\"\nset \$Latitude \"37.34\"\n[sunrise()] sunrise\n[sunset()] sunset" | remind -n -' +# another way: +# can test this mess with `alias tt="echo '\$haha \"lala\"'"` +#alias sun="printf 'set \$Longitude \"-121.89\"\nset \$Latitude \"37.34\"\n[sunrise()] sunrise\n[sunset()] sunset' | remind -n -"  alias sv=sudoedit  alias y=systemctl  alias yd='systemctl list-dependencies --all' @@ -87,9 +102,18 @@ alias yu='systemctl --user'  alias yue='systemctl --user list-unit-files --state=enabled'  alias yus='systemctl --user status'  alias v='"$EDITOR"' +alias va='"$EDITOR" "$XDG_DOCUMENTS_DIR/notes/computer/arch_install.md"' +alias vc='"$EDITOR" "$XDG_DOCUMENTS_DIR/notes/computer/cli_notes.md"'  alias vd='vidir'  alias vd2='vidir2 --linktargets' +alias vq='"$EDITOR" "$XDG_DOCUMENTS_DIR/notes/others/questions_ideas_tips.md"' +alias vn='"$EDITOR" "$(find "$XDG_DOCUMENTS_DIR/notes" -mindepth 1 -path "*/\.git" -prune -o -type f -print | fzf)"' +alias vr='"$EDITOR" "$DOTREMINDERS"'  alias vrc='"$EDITOR" +e\ \$MYVIMRC' +alias vrm='"$EDITOR" "$XDG_DOCUMENTS_DIR/notes/others/recurring_maintenance.md"' +alias vt='"$EDITOR" "$XDG_DOCUMENTS_DIR/notes/others/tmp_mobile_notes.md"' +alias xmr='monero-wallet-cli --config-file="$HOME/.bitmonero/monero-wallet-cli.conf"' +alias xmrds='monerod status; monerod print_net_stats'  alias za='zoxide add'  #alias zq='zoxide query'  #alias zqi='zoxide query -i' @@ -100,16 +124,19 @@ alias alsamixer='alsamixer -V all'  # I can't find a quick and easy way to temperory disable cloc config file except to change config file. Using an alias can disable --vcs with just \cloc.  alias cloc='cloc --vcs auto'  alias diff='diff --color=auto' +alias glmark2='glmark2 --fullscreen --annotate'  alias grep='grep --color=auto'  #alias info='info --vi-keys'  alias ls='ls --color=auto' +alias radeontop='radeontop -c'  alias rem='rem -@'  alias remind='remind -@'  alias rm='rm -I'  alias sdcv='sdcv --color'  alias shellcheck='shellcheck -x' -alias tree='tree -aC | "$PAGER"' +alias tree='tree -aC -I .git | "$PAGER"'  alias uname='uname -a' +alias vkmark='vkmark --fullscreen'  # depreciated  # all green color, no auto turn off color when pipe to nvim @@ -162,5 +189,7 @@ _completion_loader info  eval "$(complete -p info | sed 's/\(.*\)info$/\1vinfo/')"  _completion_loader git  eval "$(complete -p git | sed 's/\(.*\)git$/\1cfg/')" +_completion_loader pass +eval "$(complete -p pass | sed 's/\(.*\)pass$/\1prp/')"  # complete-alias readme  complete -F _complete_alias "${!BASH_ALIASES[@]}"  | 
