This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ACTION=="add", SUBSYSTEM=="block", ENV{ID_FS_USAGE}=="crypto", PROGRAM+="/usr/bin/bash -c 'echo \"$env{ID_FS_LABEL_ENC}\" | grep -E \"^[A-Z]\"'" RUN{program}+="/usr/sbin/cryptsetup open --token-only $devnode $env{ID_FS_LABEL_ENC}" RUN{program}+="/usr/bin/machinectl shell root@ /usr/bin/mount /dev/mapper/$env{ID_FS_LABEL_ENC}" | |
ACTION=="change", SUBSYSTEM=="block", ENV{ID_FS_USAGE}=="crypto", PROGRAM+="/usr/bin/bash -c 'echo \"$env{ID_FS_LABEL_ENC}\" | grep -E \"^[A-Z]\"'" RUN{program}+="/usr/sbin/cryptsetup open --token-only $devnode $env{ID_FS_LABEL_ENC}" RUN{program}+="/usr/bin/machinectl shell root@ /usr/bin/mount /dev/mapper/$env{ID_FS_LABEL_ENC}" | |
ACTION=="remove", SUBSYSTEM=="block", ENV{ID_FS_USAGE}=="crypto", PROGRAM+="/usr/bin/bash -c 'echo \"$env{ID_FS_LABEL_ENC}\" | grep -E \"^[A-Z]\"'" RUN{program}+="/usr/sbin/cryptsetup close --deferred $env{ID_FS_LABEL_ENC}" RUN{program}+="/usr/bin/machinectl shell root@ /usr/bin/umount -fl /dev/mapper/$env{ID_FS_LABEL_ENC}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Local history per project | |
# Default history file | |
export __LOCALHISTORY_DEFAULT="$HOME/.bash_history" | |
# Current history file | |
export __LOCALHISTORY="$__LOCALHISTORY_DEFAULT" | |
# Variable displaying path of new history file after changing directory or updating file | |
export __LOCALHISTORY_DISPLAY_PATH="" | |
# Symbol shown if the local history is active | |
export __LOCALHISTORY_ACTIVE="" | |
# Status that is displayed |