diff options
author | Xiao Pan <gky44px1999@gmail.com> | 2024-05-05 01:50:00 -0700 |
---|---|---|
committer | Xiao Pan <gky44px1999@gmail.com> | 2024-05-05 01:50:00 -0700 |
commit | f921d50ebea0e7bbbbb12eb20cd802f8b4f7010e (patch) | |
tree | 61ef560b4a6de378e7c4b9cdd1f3298a95a79d23 /home | |
parent | 282d8daf691c32d6be26b79f1b9fb944401392ee (diff) |
similar .bashrc for all computers, easier to cherry-pick with ccp
Diffstat (limited to 'home')
-rw-r--r-- | home/xyz/.bashrc | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/home/xyz/.bashrc b/home/xyz/.bashrc index 17a88a3c..6b19fb31 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' @@ -76,10 +77,21 @@ 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' @@ -89,11 +101,19 @@ alias ys='systemctl status' alias yu='systemctl --user' alias yue='systemctl --user list-unit-files --state=enabled' alias yus='systemctl --user status' -alias u='ssh-add -l >/dev/null || ssh-add; o alacritty -e ssh ka; o alacritty -e ssh studio; o alacritty -e ssh pp; upd' 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' @@ -104,6 +124,7 @@ 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' @@ -115,6 +136,7 @@ alias sdcv='sdcv --color' alias shellcheck='shellcheck -x' 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 @@ -167,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[@]}" |