-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcheckCommandHistories.sh
72 lines (71 loc) · 4.34 KB
/
checkCommandHistories.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/bin/bash
# _ _
# | | | |
# ___| |__ ___ ___| | __
# / __| '_ \ / _ \/ __| |/ /
# | (__| | | | __/ (__| <
# \___|_| |_|\___|\___|_|\_\
# ██████╗ ██████╗ ███╗ ███╗███╗ ███╗ █████╗ ███╗ ██╗██████╗
# ██╔════╝██╔═══██╗████╗ ████║████╗ ████║██╔══██╗████╗ ██║██╔══██╗
# ██║ ██║ ██║██╔████╔██║██╔████╔██║███████║██╔██╗ ██║██║ ██║
# ██║ ██║ ██║██║╚██╔╝██║██║╚██╔╝██║██╔══██║██║╚██╗██║██║ ██║
# ╚██████╗╚██████╔╝██║ ╚═╝ ██║██║ ╚═╝ ██║██║ ██║██║ ╚████║██████╔╝
# ╚═════╝ ╚═════╝ ╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═══╝╚═════╝
#
# ██╗ ██╗██╗███████╗████████╗ ██████╗ ██████╗ ██╗ ██╗
# ██║ ██║██║██╔════╝╚══██╔══╝██╔═══██╗██╔══██╗╚██╗ ██╔╝
# ███████║██║███████╗ ██║ ██║ ██║██████╔╝ ╚████╔╝
# ██╔══██║██║╚════██║ ██║ ██║ ██║██╔══██╗ ╚██╔╝
# ██║ ██║██║███████║ ██║ ╚██████╔╝██║ ██║ ██║
# ╚═╝ ╚═╝╚═╝╚══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═╝
#=======================================================================================
#=== DESCIPTION ========================================================================
#=======================================================================================
## prints out the command histories
## lets you filter by most used commands
##
#=======================================================================================
#=======================================================================================
#
#*************** NEED TO DO/ADD ***********************
#
#******************************************************
#
#///////////////////////////////////////////////////////////////////////////////////////
#|||||||||||||||||||||||| Script Stuff Starts |||||||||||||||||||||||||||||||||||||||||
#\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
#### RUN function #####
#######################
function main(){ ###
function1 ###
function2 ###
} ###
#######################
#------ error handling ----------
### If error, give up #
#set -e #
#- - - - - - - - - - - - - - - -#
### if error, do THING #
# makes trap global #
# (works in functions) #
#set -o errtrace #
# 'exit' can be a func or cmd #
#trap 'exit' ERR #
#--------------------------------
backupDir="$HOME""/ccdc_backups/$(basename "$0" | sed 's/\.sh$//')"
###########################################################################################
#FUNCTION1 description
###########################################################################################
function function1(){
#### PART 1 ############################
}
###########################################################################################
#FUNCTION2 description
###########################################################################################
function function2(){
#### PART 1 ############################
}
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#+++++++++++++++++++++++++++++++++ FIGHT!! +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
main