aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSukma Wardana <hey@swardana.com>2020-11-09 17:11:20 +0700
committerSukma Wardana <hey@swardana.com>2020-11-09 17:11:20 +0700
commit911d279c2f6d7796feb1c1e60fd735c3ce82e623 (patch)
tree60909c26caa4701d20a8b8765ceb927a77eba6d8
parent2ab96ed54305eaf89286c1d146aac94315c22f97 (diff)
downloaddotfiles-911d279c2f6d7796feb1c1e60fd735c3ce82e623.tar.gz
dotfiles-911d279c2f6d7796feb1c1e60fd735c3ce82e623.zip
Add aliases
Signed-off-by: Sukma Wardana <hey@swardana.com>
-rw-r--r--CHANGELOG2
-rw-r--r--aliases47
2 files changed, 49 insertions, 0 deletions
diff --git a/CHANGELOG b/CHANGELOG
index 1e987ab..df75ed9 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -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.
diff --git a/aliases b/aliases
new file mode 100644
index 0000000..c498bda
--- /dev/null
+++ b/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'