diff options
author | typebrook <typebrook@gmail.com> | 2019-06-30 15:14:50 +0800 |
---|---|---|
committer | typebrook <typebrook@gmail.com> | 2019-06-30 15:14:50 +0800 |
commit | efa96307d23e5a3bc9ca574eaf8b4b3feffe8339 (patch) | |
tree | 67c141a9ba07d841a85b9b0009e9e3bf51f44880 | |
parent | f553c063588e130fa942ca9a172c1fcece65105a (diff) |
update
-rw-r--r-- | alias | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -12,13 +12,11 @@ alias log='cat log | grep "`date +"%b %d"`"' | |||
12 | alias v='vim' | 12 | alias v='vim' |
13 | alias vv='vim ~/vimwiki/index.wiki' | 13 | alias vv='vim ~/vimwiki/index.wiki' |
14 | alias vr='vim -R' | 14 | alias vr='vim -R' |
15 | alias cdv='cd ~/.vim_runtime' | 15 | alias cdv='cd ~/.vim_runtime' # amix/vimrc repo |
16 | 16 | ||
17 | # shell | 17 | # shell |
18 | alias ll='ls -alh' | 18 | alias ll='ls -alh' |
19 | alias ag='sudo apt-get' | 19 | alias ai='sudo apt install' |
20 | alias ai='sudo apt-get install' | ||
21 | alias ac='apt-cache' | ||
22 | alias si='sudo snap install' | 20 | alias si='sudo snap install' |
23 | alias ss='sudo !!' | 21 | alias ss='sudo !!' |
24 | alias hg='history|grep' | 22 | alias hg='history|grep' |
@@ -51,7 +49,7 @@ alias ce='crontab -e' | |||
51 | # ranger | 49 | # ranger |
52 | alias r='_ranger-cd' | 50 | alias r='_ranger-cd' |
53 | alias ranrc='vim ~/.config/ranger/rc.conf' | 51 | alias ranrc='vim ~/.config/ranger/rc.conf' |
54 | function _ranger-cd { | 52 | _ranger-cd() { |
55 | tempfile="$(mktemp -t tmp.XXXXXX)" | 53 | tempfile="$(mktemp -t tmp.XXXXXX)" |
56 | ranger --choosedir="$tempfile" "${@:-$(pwd)}" | 54 | ranger --choosedir="$tempfile" "${@:-$(pwd)}" |
57 | test -f "$tempfile" && | 55 | test -f "$tempfile" && |
@@ -101,10 +99,6 @@ alias geothings-test='ssh geothings@test.geothings.tw' | |||
101 | alias cdt='cd ~/git/tig' | 99 | alias cdt='cd ~/git/tig' |
102 | alias t='tig' | 100 | alias t='tig' |
103 | alias ta='tig --all' | 101 | alias ta='tig --all' |
104 | alias ts='tig status' | ||
105 | alias tl='tig log' | ||
106 | alias ty='tig stash' | ||
107 | alias tigr='tig refs' | ||
108 | alias get-tig='curl -LO https://github.com/typebrook/tig/releases/download/tig-2.4.1/tig' | 102 | alias get-tig='curl -LO https://github.com/typebrook/tig/releases/download/tig-2.4.1/tig' |
109 | alias upload-tig='upload-github-release-asset.sh github_api_token=$(head -1 $HOME/git/settings/tokens/github-release) owner=typebrook repo=tig tag=tig-2.4.1 filename=$(which tig)' | 103 | alias upload-tig='upload-github-release-asset.sh github_api_token=$(head -1 $HOME/git/settings/tokens/github-release) owner=typebrook repo=tig tag=tig-2.4.1 filename=$(which tig)' |
110 | 104 | ||
@@ -165,4 +159,3 @@ alias mm='mkvmerge -o out.webm -w 01.webm + 02.webm' | |||
165 | repo='git@github.com' | 159 | repo='git@github.com' |
166 | hub='https://github.com' | 160 | hub='https://github.com' |
167 | typebrook='git@github.com:typebrook' | 161 | typebrook='git@github.com:typebrook' |
168 | hub='https://github.com' | ||