-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunload.sh
82 lines (69 loc) · 1.27 KB
/
unload.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
73
74
75
76
77
78
79
80
81
82
# Remove the custom aliases and functions.
#
# Copyright (c) 2019-2021 ByteBard. Licensed under Apache 2.0
_remove_function ()
{
if type $1 2>/dev/null 1>&2;
then
unset -f $1;
fi
}
_remove_function trims;
_remove_function psquery;
_remove_function try;
_remove_function download;
unset -f _remove_function;
_remove_alias ()
{
if (alias $1 2>/dev/null 1>&2);
then
unalias $1;
fi
}
_remove_alias ls;
_remove_alias mv;
_remove_alias cp;
_remove_alias rm;
_remove_alias mkdir;
unset _remove_alias;
unset RECOLOR
unset BLACK
unset RED
unset GREEN
unset YELLOW
unset BLUE
unset PURPLE
unset CYAN
unset WHITE
unset BOLD_BLACK
unset BOLD_RED
unset BOLD_GREEN
unset BOLD_YELLOW
unset BOLD_BLUE
unset BOLD_PURPLE
unset BOLD_CYAN
unset BOLD_WHITE
unset BRIGHT_BLACK
unset BRIGHT_RED
unset BRIGHT_GREEN
unset BRIGHT_YELLOW
unset BRIGHT_BLUE
unset BRIGHT_PURPLE
unset BRIGHT_CYAN
unset BRIGHT_WHITE
unset BOLD_BRIGHT_BLACK
unset BOLD_BRIGHT_RED
unset BOLD_BRIGHT_GREEN
unset BOLD_BRIGHT_YELLOW
unset BOLD_BRIGHT_BLUE
unset BOLD_BRIGHT_PURPLE
unset BOLD_BRIGHT_CYAN
unset BOLD_BRIGHT_WHITE
unset UNDERLINE_BLACK
unset UNDERLINE_RED
unset UNDERLINE_GREEN
unset UNDERLINE_YELLOW
unset UNDERLINE_BLUE
unset UNDERLINE_PURPLE
unset UNDERLINE_CYAN
unset UNDERLINE_WHITE