forked from akhilnarang/scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
aliases
executable file
·55 lines (42 loc) · 1.6 KB
/
aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/usr/bin/env bash
# Copyright (C) 2018 Akhil Narang
# SPDX-License-Identifier: GPL-3.0-only
# Script with some aliases and exports
if [[ "$(command -v hub)" ]]; then
alias git='hub'
fi
# SSH aliases
alias rr='ssh akhil@rr.akhilnarang.me'
alias aosip='ssh akhil@aosiprom.com'
alias kronic='ssh kronic@aosiprom.com'
alias jenkins='ssh ubuntu@jenkins.akhilnarang.me'
alias bot='ssh bot@bot.akhilnarang.me'
alias downloads='ssh akhil@downloads.akhilnarang.me'
alias mirror='ssh akhil@mirror.akhilnarang.me'
# Miscellaneous aliases
alias setperf='echo "performance" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'
alias setsave='echo "powersave" | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor'
alias path='echo ${PATH}'
alias stopjack='jack-admin stop-server'
# https://github.com/AdrianDC/android_development_shell_tools
# Has some useful stuff :)
ADCSCRIPT="${HOME}/android_development_shell_tools"
if [[ -f "${ADCSCRIPT}/android_development_shell_tools.rc" ]]; then
source "${ADCSCRIPT}/android_development_shell_tools.rc"
fi
# Some PATH changes and stuff only for my laptop
if [[ "$(hostname)" == "randomness" || "$(hostname)" == "akhil-Lenovo-Y50-70" ]]; then
# Extend the default PATH a bit
export PATH=${HOME}/bin:${HOME}/android-studio/bin:${HOME}/pidcat:${HOME}/Android/Sdk/platform-tools:${HOME}/adb-sync:$PATH
# Set a custom path for the Android SDK
export ANDROID_HOME=${HOME}/Android/Sdk
fi
# Set default editor to nano
export EDITOR="nano"
# Set timezone
export TZ="Asia/Kolkata"
# Colors
green='\e[0;32m'
cyan='\e[0;36m'
red='\e[0;31m'
lightgray='\e[0;37m'