-
Notifications
You must be signed in to change notification settings - Fork 30
/
bashmount.conf
106 lines (86 loc) · 3.11 KB
/
bashmount.conf
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
98
99
100
101
102
103
104
105
106
#
# bashmount.conf
#
# Place in /etc/bashmount.conf for system wide configuration.
# Place in ~/.config/bashmount/config for per-user configuration.
# XDG_CONFIG_HOME is respected if it has been set.
# Set whether to or not to use udisksctl. The default is to autodetect whether
# it is available. This can be '0', '1', or 'auto'.
#udisks='auto'
# Set which sections to show in the output. These can be '0' or '1'.
#show_internal='1'
#show_removable='1'
#show_optical='1'
#show_commands='1'
# Set whether to colourize the output. This can be '0' or '1'.
#colourize='1'
# Set whether to use unicode for pretty layout. This can be '0' or '1'.
#pretty='1'
# Set default mount options. The default is to pass no options.
#mount_options='--options nosuid,noexec,noatime'
# Set devices to exclude. Any device whose "lsblk -P" output contains a string
# listed here will be hidden. The following key-value-pairs are printed:
# lsblk -dPno NAME,TYPE,FSTYPE,LABEL,MOUNTPOINT,PARTLABEL,UUID [device_name]
# The strings are matched using "grep -E" regular expression.
#exclude=()
###
### This example will match any device with "Photosmart" in any field.
### exclude=( 'Photosmart' )
###
### This example will match the device found at /dev/sda1.
### exclude=( 'NAME="sda1"' )
###
### This example will match /dev/sda1, /dev/sda2 and /dev/sda3.
### exclude=( 'NAME="sda[1-3]"' )
###
### This example matches several different devices. Note that the array can be
### split over multiple lines for convenience.
### exclude=( 'FSTYPE="ext3"' )
### exclude+=( 'LABEL="secret"' )
### exclude+=( 'MOUNTPOINT="/"' )
### exclude+=( 'UUID="0c4d6d9c-87a2-4579-b2ae-35b0790c718a"' )
###
# Set filemanager command to use when performing the "open" command. The mount
# point is passed as the first argument. The default is to open the directory
# within your terminal.
# Uncomment this example to launch a graphical file manager.
#filemanager() {
# /usr/bin/nautilus "$1" & >/dev/null 2>&1
#}
# Uncomment this example to launch midnight commander in a new window.
#filemanager() {
# /usr/bin/uxterm -wf -e /usr/bin/mc "$1" & >/dev/null 2>&1
#}
# Set custom commands. Set "customX_show" to '0' to disable or '1' to enable.
# If enabled, the custom commands will be shown in the device sub-menu. The
# description and command functions can be set to anything you desire. The
# device name (e.g. /dev/sdb1) is passed as the first and only argument.
# A maximum of 3 custom actions are configurable.
#custom4_show='0'
#custom4_desc='changeme'
#custom4_command() {
# sudo mount --options remount,ro "$1" "/mnt/${1##*/}"
#}
#custom5_show='0'
#custom5_desc='changeme'
#custom5_command() {
#
#}
#custom6_show='0'
#custom6_desc='changeme'
#custom6_command() {
#
#}
# Set custom commands to be run automatically after mounting or unmounting.
# post_mount is run immediately after a successful mount operation, and
# post_unmount is run immediately after a successful unmount operation.
# Set "run_post_mount" to '0' to disable or '1' to enable.
#run_post_mount='0'
#post_mount() {
#
#}
# Set "run_post_unmount" to '0' to disable or '1' to enable.
#run_post_unmount='0'
#post_unmount() {
#
#}