/
.bashrc.local.post
97 lines (97 loc) · 2.58 KB
/
.bashrc.local.post
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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# .bashrc.local.post
#
# add customizations to this file
# this file will not be overwritten by `dotfiles/install.sh` or
# `bash_update_dots`
#
# this file is sourced by `.bashrc.builtins.post` after that file has
# nearly completed
#
# list of useful functions defined in `dotfiles/.bashrc`, with examples:
#
# bash_prompt_table_variable_add
# # adds a variable to the prompt table
#
# $ bash_prompt_table_variable_add TZ
#
# bash_prompt_table_variable_rm
# # removes a variable from the prompt table
#
# $ bash_prompt_table_variable_rm IPv4_eth1
#
# bash_prompt_table_variable_insert_after_var
# # adds a variable to the prompt table, after the second variable
#
# $ bash_prompt_table_variable_insert_after_var GZIP_OPTS TZ
#
# bash_prompt_git_info_mountpoint_array_add
# # git info in prompt will check for repositories under this mount
# # in WSL2 Linux, there may be git repositories on the local Windows "D:\"
# # drive
#
# $ bash_prompt_git_info_mountpoint_array_add /mnt/d
#
# bash_prompt_table_variable_add_net_IPv4
# # adds a network interface, Linux or Windows, and it's IPv4 Address to the
# # prompt table
#
# $ bash_prompt_table_variable_add_net_IPv4 "Virtual Box"
#
# bash_source_file
# # source a file safely and with debug info
#
# $ bash_source_file ~/.config/my-secret-bashrc
#
# bash_path_add
# # add a path to the $PATH safely (check if path exists, no redundancies)
#
# $ bash_path_add /opt/bin /opt/sbin
#
# bash_prompt_table_enable
# # turn on prompt table, enabled by default
#
# $ bash_prompt_table_enable
#
# bash_prompt_table_disable
# # turn off prompt table
#
# $ bash_prompt_table_disable
#
# bash_prompt_git_info_enable
# # turn on git info prompt, enabled by default
#
# $ bash_prompt_git_info_enable
#
# bash_prompt_git_info_disable
# # turn off git info prompt
#
# $ bash_prompt_git_info_disable
#
# bash_alias_add
# # add an alias safely (do not overwrite previous)
#
# $ bash_alias_add mnt 'mount | sort -k3 | column -t | cut -c -${COLUMNS}'
#
# list of useful variables defined in `dotfiles/.bashrc`, with examples:
#
# bash_prompt_bullet
# # a string, replaces prompt marker string
#
# $ bash_prompt_bullet='•'
#
# # or in case your terminal is having trouble copy+pasting non-ASCII
# # characters:
#
# $ bash_prompt_bullet=$(echo -e "\U2022")
#
# bash_color_force
# # true/false, forces color for prompt and a few other places
#
# $ bash_color_force=true
#
# a few utility functions defined in `dotfiles/.bashrc`:
#
# line_count
# ordinal
# character
#