summaryrefslogtreecommitdiffhomepage
path: root/alias
diff options
context:
space:
mode:
Diffstat (limited to 'alias')
-rw-r--r--alias12
1 files changed, 11 insertions, 1 deletions
diff --git a/alias b/alias
index 6057d19..8cf1f46 100644
--- a/alias
+++ b/alias
@@ -26,13 +26,19 @@ alias src="source $HOME/.$(basename $SHELL)rc"
26alias ll='ls -alh' 26alias ll='ls -alh'
27alias si='sudo snap install' # snap install 27alias si='sudo snap install' # snap install
28alias ni='sudo npm install -g' # nodejs install 28alias ni='sudo npm install -g' # nodejs install
29alias ss='sudo !!'
30alias hg='history|grep' 29alias hg='history|grep'
31alias rmrf='rm -rf' 30alias rmrf='rm -rf'
32alias rr='move_to_tmp' 31alias rr='move_to_tmp'
33move_to_tmp() { 32move_to_tmp() {
34 mv $@ /tmp 33 mv $@ /tmp
35} 34}
35prompt() {
36 TMPFILE=$(mktemp) echo $1 > $TMPFILE && \
37 vim $TMPFILE && \
38 sed -i '$ q; s/$/ \\/' $TMPFILE && \
39 cat $TMPFILE && \
40 source $TMPFILE
41}
36 42
37# package 43# package
38alias ai='sudo apt install' # apt install 44alias ai='sudo apt install' # apt install
@@ -99,6 +105,10 @@ gcg() {
99} 105}
100alias gls='git log -S' 106alias gls='git log -S'
101alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule 107alias cdgs='cd $(git submodule status | sed "s/^.//" | cut -d" " -f2)' # cd to first submodule
108upload() {
109 command="upload-github-release-asset.sh\n github_api_token=$(cat ~/settings/tokens/github)\n owner=typebrook\n repo=tig\n tag=LATEST\n filename=$(which tig)\n overwrite=false"
110 prompt "$command"
111}
102 112
103# docker 113# docker
104alias dp='docker ps' 114alias dp='docker ps'