mirror of
https://github.com/DictXiong/dotfiles.git
synced 2024-11-24 16:37:00 +08:00
improve git-branches; util-linux
This commit is contained in:
parent
09a8a7e0e2
commit
297d49d5ca
8
.zshrc2
8
.zshrc2
|
@ -88,14 +88,14 @@ alias "se"='sudo -sE'
|
||||||
alias "pbd"='ping baidu.com'
|
alias "pbd"='ping baidu.com'
|
||||||
alias "p114"='ping 114.114.114.114'
|
alias "p114"='ping 114.114.114.114'
|
||||||
alias "p666"='ping6 2001:da8::666'
|
alias "p666"='ping6 2001:da8::666'
|
||||||
alias "git-branches"='git for-each-ref --sort=-committerdate refs/heads refs/remotes --format="%(authordate:format:%y-%m-%d %H:%M)|%(color:red)%(objectname:short)|%(color:yellow)%(refname:short)%(color:reset)|%(color:reset)%(authorname): %(color:green)%(subject)" --color=always | column -ts"|"'
|
|
||||||
sibd() { ssh -p 12022 root@$1${1:+.}ibd.ink }
|
|
||||||
sob() { ssh -p 24022 root@$1${1:+.}ob.ac.cn }
|
|
||||||
snasp() { ssh -o ProxyJump="ssh@nasp.ob.ac.cn:36022" dictxiong@$1 }
|
|
||||||
case $(bash "$DOTFILES/tools/common.sh" get_os_type) in
|
case $(bash "$DOTFILES/tools/common.sh" get_os_type) in
|
||||||
macos ) alias l='ls -lAGh -D "%y-%m-%d %H:%M"' ;;
|
macos ) alias l='ls -lAGh -D "%y-%m-%d %H:%M"' ;;
|
||||||
* ) alias l='ls -lAGh --time-style="+%y-%m-%d %H:%M"' ;;
|
* ) alias l='ls -lAGh --time-style="+%y-%m-%d %H:%M"' ;;
|
||||||
esac
|
esac
|
||||||
|
sibd() { ssh -p 12022 root@$1${1:+.}ibd.ink }
|
||||||
|
sob() { ssh -p 24022 root@$1${1:+.}ob.ac.cn }
|
||||||
|
snasp() { ssh -o ProxyJump="ssh@nasp.ob.ac.cn:36022" dictxiong@$1 }
|
||||||
|
git-branches() { git for-each-ref --sort=-committerdate refs/heads refs/remotes --format="%(authordate:format:%y-%m-%d.%a %H:%M %z)|%(color:red)%(objectname:short)|%(color:yellow)%(refname:short)%(color:reset)|%(color:reset)%(authorname): %(color:green)%(subject)" --color=always --count=${1:-10} | column -ts"|" }
|
||||||
piv-agent()
|
piv-agent()
|
||||||
{
|
{
|
||||||
eval $(ssh-agent -k)
|
eval $(ssh-agent -k)
|
||||||
|
|
|
@ -14,7 +14,7 @@ apk_add()
|
||||||
apk update
|
apk update
|
||||||
|
|
||||||
# mass installation
|
# mass installation
|
||||||
apk add zsh git tmux vim curl wget bash python3 py3-pip htop gcc g++ cmake make fzf perl linux-headers bind-tools iputils man-db coreutils
|
apk add zsh git tmux vim curl wget bash python3 py3-pip htop gcc g++ cmake make fzf perl linux-headers bind-tools iputils man-db coreutils util-linux
|
||||||
#for i in {fzf,ripgrep}; do apk add $i -y; done
|
#for i in {fzf,ripgrep}; do apk add $i -y; done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user