diff options
author | Sukma Wardana <hey@swardana.com> | 2020-11-09 17:11:20 +0700 |
---|---|---|
committer | Sukma Wardana <hey@swardana.com> | 2020-11-09 17:11:20 +0700 |
commit | 911d279c2f6d7796feb1c1e60fd735c3ce82e623 (patch) | |
tree | 60909c26caa4701d20a8b8765ceb927a77eba6d8 | |
parent | 2ab96ed54305eaf89286c1d146aac94315c22f97 (diff) | |
download | dotfiles-911d279c2f6d7796feb1c1e60fd735c3ce82e623.tar.gz dotfiles-911d279c2f6d7796feb1c1e60fd735c3ce82e623.zip |
Add aliases
Signed-off-by: Sukma Wardana <hey@swardana.com>
-rw-r--r-- | CHANGELOG | 2 | ||||
-rw-r--r-- | aliases | 47 |
2 files changed, 49 insertions, 0 deletions
@@ -6,3 +6,5 @@ This format is based on https://keepachangelog.com/en/1.0.0/ and this project adheres to https://semver.org/spec/v2.0.0.html. [Unreleased] + +- Add aliases. @@ -0,0 +1,47 @@ +# Copyright 2020 Sukma Wardana <hey@swardana.com> +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +# +# Copy this file to home directory. +# cp aliases ~/.aliases +# + +# https://askubuntu.com/a/22043 +# The first word of each simple command, if unquoted, +# is checked to see if it has an alias. +# +# If the last character of the alias value is a space or tab character, +# then the next command word following the alias is also checked +# for alias expansion. +alias sudo='sudo ' + +alias cl='clear' +alias cls='clear; ls' +alias l='ls -Ahl' +alias tree='tree -a -I ".svn|.git|.hg"' +alias tree2='tree -L 2' +alias tree3='tree -L 3' + +alias mci='mvn -T 1C clean install' +alias mcd='mvn clean deploy' +alias killjava='killall java' + +alias gs='git status' +alias gl='git log' +# required to install browser-sync (npm install -g browser-sync) +alias bsync='browser-sync src -f src -b "google chrome" --no-notify' |