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
| ale | |
| auto-pairs | |
| diffchar.vim | |
| eregex.vim | |
| fzf.vim | |
| goyo.vim | |
| gundo.vim | |
| limelight.vim | |
| markdown-preview.nvim | |
| mkdx |
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
| #gpg | |
| export GPG_TTY=$(tty) | |
| gpg-connect-agent updatestartuptty /bye &> /dev/null | |
| unset SSH_AGENT_PID | |
| if [ "${gnupg_SSH_AUTH_SOCK_by:-0}" -ne $$ ]; then | |
| export SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)" | |
| fi |
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
| use Rex -feature => [ '1.4', 'exec_autodie' ]; | |
| use Rex::Hook::File::Diff; # show diff of file changes by Rex | |
| use if $ENV{PREVIEW}, 'Rex::Hook::File::Impostor'; # use extra hooks if PREVIEW is true | |
| desc 'Demonstrate file preview'; | |
| task 'demo', sub { | |
| file '/tmp/rex_file_preview_demo', content => scalar localtime(); | |
| }; |
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
| use Rex -feature => [ '1.4', 'exec_autodie' ]; | |
| sudo_password 'sudo password'; | |
| task test => sub { | |
| say run 'whoami'; # should be normal user | |
| sudo TRUE; | |
| say run 'whoami'; # should be root | |
| }; |
OlderNewer