aboutsummaryrefslogtreecommitdiffstats
path: root/hyperterm/_custom.sh
blob: 34b1da35f290353c8624a09d158bfe11527e5d53 (plain)
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
## [Alias]
# shellcheck disable=SC1090,SC1091,SC2034,SC2154

#---------------
# Fullyclean
#---------------
alias ac='clean && clear'

#-----------------
# Theme Selection
#-----------------
HYPERTERM_THEME="default"

# Load only selected theme - optimized for speed
if [[ -f "$HOME/.hyperterm/themes/${HYPERTERM_THEME}.sh" ]]; then
    source "$HOME/.hyperterm/themes/${HYPERTERM_THEME}.sh"
    case "$HYPERTERM_THEME" in
        "default") prompt="${default}" ;;
        "joy") prompt="${joy}" ;;
        "light_theme") prompt="${light_theme}" ;;
        "minterm") prompt="${minterm}" ;;
        "pure") prompt="${pure}" ;;
        "simple") prompt="${simple}" ;;
        "special") prompt="${special}" ;;
    esac
fi

#-------
# Tools
#-------
# Uncomment only the tools you actually use for faster loading
HYPERTERM_TOOLS=(
    "compress"       # Archive extractor (ex function for .tar, .zip, .rar, etc)
    # "export"       # Export functions and environment variables
    # "listuser"     # User listing and management utilities
    "network"        # IP detection and network info functions
    # "proxy"        # Proxy configuration helpers
    # "rar2zip"      # RAR to ZIP conversion utilities
    # "ruby"         # Ruby development environment setup
    "ssh-agent"      # SSH key and agent management
    # "sysinfo"      # System information display functions
    # "virtualenv"   # Python virtual environment tools
    # "vconverter"   # Video conversion utilities
)

# Load only selected tools
for tool in "${HYPERTERM_TOOLS[@]}"; do
    [[ -f "$HOME/.hyperterm/tools/${tool}.sh" ]] && source "$HOME/.hyperterm/tools/${tool}.sh"
done

#---------------
# Screenfetch
#---------------
if command -v screenfetch &> /dev/null; then screenfetch; else true; fi

#---------------
# PKGFILE
#---------------
if [[ -f /usr/share/doc/pkgfile/command-not-found.bash ]]; then source /usr/share/doc/pkgfile/command-not-found.bash; else true; fi

#---------------
# Trash-cli
#---------------
# if command -v trash &> /dev/null; then alias rm='echo "This is not the command you are looking for."; false'; else true; fi
# Then, if you really want to use rm, simply prepend a slash to bypass the alias:
# \rm file-without-hope

#-----------
# TTY GNUPG
#-----------
# export GPG_TTY=$(tty)