diff options
Diffstat (limited to 'FreeBSD/root/.profile')
| -rw-r--r-- | FreeBSD/root/.profile | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/FreeBSD/root/.profile b/FreeBSD/root/.profile new file mode 100644 index 0000000..7e29455 --- /dev/null +++ b/FreeBSD/root/.profile | |||
| @@ -0,0 +1,54 @@ | |||
| 1 | # $FreeBSD: stable/12/bin/sh/dot.profile 338374 2018-08-29 16:59:19Z brd $ | ||
| 2 | # | ||
| 3 | PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin | ||
| 4 | export PATH | ||
| 5 | HOME=/root | ||
| 6 | export HOME | ||
| 7 | TERM=${TERM:-xterm} | ||
| 8 | export TERM | ||
| 9 | PAGER=less | ||
| 10 | export PAGER | ||
| 11 | |||
| 12 | # Query terminal size; useful for serial lines. | ||
| 13 | if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi | ||
| 14 | |||
| 15 | # Uncomment to display a random cookie on each login. | ||
| 16 | # if [ -x /usr/bin/fortune ] ; then /usr/bin/fortune -s ; fi | ||
| 17 | |||
| 18 | |||
| 19 | ## Custom settings ## | ||
| 20 | PS1="[\[\033[01;32m\]\u\[\033[00m\]@\h \w]\\$ "; export PS1 | ||
| 21 | |||
| 22 | export HISTSIZE=10000 | ||
| 23 | export HISTCONTROL=ignorespace:erasedups | ||
| 24 | shopt -s checkwinsize | ||
| 25 | |||
| 26 | alias s='screen -r' | ||
| 27 | alias vi='vim' | ||
| 28 | alias invoke='/usr/local/bin/invoke -p' | ||
| 29 | alias pfssh='pfctl -t ssh_abusers -T show | tr -d " "' | ||
| 30 | alias pfexempted='pfctl -t ssh_exempted -T show | tr -d " "' | ||
| 31 | alias pfhttp='pfctl -t http_abusers -T show | tr -d " "' | ||
| 32 | alias pfsmtp='pfctl -t smtp_abusers -T show | tr -d " "' | ||
| 33 | alias pftelnet='pfctl -t telnet_abusers -T show | tr -d " "' | ||
| 34 | alias pfscanner='pfctl -v -t scanner_abusers -T show | tr -d " "' | ||
| 35 | alias pfsshscanner='pfctl -v -t ssh_scanner_abusers -T show | tr -d " "' | ||
| 36 | alias pfpermitted='pfctl -t ssh_permitted_networks -T show | tr -d " "' | ||
| 37 | alias pfadd='pfctl -t ssh_abusers -T add' | ||
| 38 | alias pfdel='pfctl -t ssh_abusers -T delete' | ||
| 39 | # alias snfs='service nfsd stop && service mountd stop && service rpcbind stop' | ||
| 40 | |||
| 41 | export LANG=en_US.UTF-8 | ||
| 42 | export EDITOR=/usr/local/bin/emacs | ||
| 43 | |||
| 44 | export PASSPHRASE=foo | ||
| 45 | |||
| 46 | alias dstatus='/usr/local/bin/duplicity collection-status --name mbox_regular_backup --archive-dir /mnt/secure/root/Backup/duplicity/archive --tempdir /mnt/secure/root/Backup/duplicity/tmp --encrypt-sign-key A359FC35A083BF02DFC5B43CE15425740166354B rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/backups/MagnumBOX/' | ||
| 47 | alias drstatus='/usr/local/bin/duplicity collection-status --name mbox_remote_backup --archive-dir /mnt/secure/root/Backup/duplicity/archive --tempdir /mnt/secure/root/Backup/duplicity/tmp --encrypt-sign-key A359FC35A083BF02DFC5B43CE15425740166354B rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/remote_backups/MagnumBOX/' | ||
| 48 | |||
| 49 | alias dremove='/usr/local/bin/duplicity remove-all-but-n-full 5 --name mbox_regular_backup --archive-dir /mnt/secure/root/Backup/duplicity/archive --tempdir /mnt/secure/root/Backup/duplicity/tmp --encrypt-sign-key A359FC35A083BF02DFC5B43CE15425740166354B --log-file /var/log/duplicity.log --verbosity notice rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/backups/MagnumBOX/' | ||
| 50 | alias drremove='/usr/local/bin/duplicity remove-all-but-n-full 7 --name mbox_remote_backup --archive-dir /mnt/secure/root/Backup/duplicity/archive --tempdir /mnt/secure/root/Backup/duplicity/tmp --encrypt-sign-key A359FC35A083BF02DFC5B43CE15425740166354B --log-file /var/log/duplicity.log --verbosity notice rsync://ssync@sagabox//mnt/cpool1/data/ssync/data/remote_backups/MagnumBOX/' | ||
| 51 | |||
| 52 | # enable bash-completion | ||
| 53 | [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \ | ||
| 54 | source /usr/local/share/bash-completion/bash_completion.sh | ||
