-
Notifications
You must be signed in to change notification settings - Fork 8
/
git.sh
30 lines (25 loc) · 1.89 KB
/
git.sh
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
#!/bin/bash
# Copyright (C) 2015 Paranoid Android Project
# Copyright (C) 2018 Sipun Ku Mahanta<[email protected]>
# Define color codes for output messages
CLR_RST=$(tput sgr0)
CLR_BLD=$(tput bold)
CLR_BLD_GRN=$CLR_RST$CLR_BLD$(tput setaf 2) # green, bold
# Display a title in green
echo -e "${CLR_BLD_GRN}██████╗ █████╗ ██████╗ ██╗ ██╗███████╗████████╗ █████╗ ██████╗ ${CLR_RST}"
echo -e "${CLR_BLD_GRN}██╔══██╗██╔══██╗██╔══██╗██║ ██╔╝██╔════╝╚══██╔══╝██╔══██╗██╔══██╗${CLR_RST}"
echo -e "${CLR_BLD_GRN}██║ ██║███████║██████╔╝█████╔╝ ███████╗ ██║ ███████║██████╔╝${CLR_RST}"
echo -e "${CLR_BLD_GRN}██║ ██║██╔══██║██╔══██╗██╔═██╗ ╚════██║ ██║ ██╔══██║██╔══██╗${CLR_RST}"
echo -e "${CLR_BLD_GRN}██████╔╝██║ ██║██║ ██║██║ ██╗███████║ ██║ ██║ ██║██║ ██║${CLR_RST}"
echo -e "${CLR_BLD_GRN}╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═╝ ╚═╝╚═╝ ╚═╝${CLR_RST}"
echo -e ""
echo -e "${CLR_BLD_GRN}Setting-up Users info...${CLR_RST}"
echo -e ""
# Set global Git user information
git config --global user.email "[email protected]"
git config --global user.name "S I P U N"
# Define Git aliases
git config --global alias.cp 'cherry-pick -s'
git config --global alias.c 'commit -s'
echo -e ""
echo -e "${CLR_BLD_GRN}Now You are good to Go${CLR_RST}"