diff options
Diffstat (limited to 'alias')
-rw-r--r-- | alias | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -72,7 +72,9 @@ path() { echo $PATH; } # Should not use alias, because $PATH is not initialized | |||
72 | fd() { echo /proc/$$/fd; ls -l /proc/$$/fd; } | 72 | fd() { echo /proc/$$/fd; ls -l /proc/$$/fd; } |
73 | port() { sudo lsof -i :$1; } | 73 | port() { sudo lsof -i :$1; } |
74 | alias ports='sudo lsof -i -Pn | grep LISTEN' | 74 | alias ports='sudo lsof -i -Pn | grep LISTEN' |
75 | alias src="source $HOME/.$(basename $SHELL)rc" | 75 | .() { |
76 | source ${@:-$HOME/.$(basename $SHELL)rc} | ||
77 | } | ||
76 | alias ll='ls -alh' | 78 | alias ll='ls -alh' |
77 | llw() { which $1 | xargs ls -alh; } | 79 | llw() { which $1 | xargs ls -alh; } |
78 | alias hg='history | grep' | 80 | alias hg='history | grep' |
@@ -279,11 +281,9 @@ alias dis='docker images' | |||
279 | alias dc='docker-compose' | 281 | alias dc='docker-compose' |
280 | alias drm='docker rm `docker ps -aq`' | 282 | alias drm='docker rm `docker ps -aq`' |
281 | alias dr='docker run --rm -it' | 283 | alias dr='docker run --rm -it' |
282 | alias drsh='docker run --rm -it --entrypoint /bin/sh $@' | 284 | drsh() { docker run --rm -it --entrypoint /bin/sh $@; } |
283 | alias drbash='docker run --rm -it --entrypoint /bin/bash $@' | 285 | drbash() { docker run --rm -it --entrypoint /bin/bash $@; } |
284 | docker.tags() { | 286 | docker.tags() { curl -s -S "https://registry.hub.docker.com/v2/repositories/$@/tags/" | jq '.results[]["name"]' | sort; } |
285 | curl -s -S "https://registry.hub.docker.com/v2/repositories/$@/tags/" | jq '.results[]["name"]' | sort | ||
286 | } | ||
287 | 287 | ||
288 | # Android | 288 | # Android |
289 | alias debug='./gradlew app:installDebug && adb shell am start -n com.geothings.geobingan/.MainActivity_' | 289 | alias debug='./gradlew app:installDebug && adb shell am start -n com.geothings.geobingan/.MainActivity_' |