diff options
Diffstat (limited to 'FreeBSD')
| -rw-r--r-- | FreeBSD/root/.profile | 54 | ||||
| -rw-r--r-- | FreeBSD/user/.profile | 60 |
2 files changed, 114 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 | ||
diff --git a/FreeBSD/user/.profile b/FreeBSD/user/.profile new file mode 100644 index 0000000..c9551c4 --- /dev/null +++ b/FreeBSD/user/.profile | |||
| @@ -0,0 +1,60 @@ | |||
| 1 | # $FreeBSD: stable/12/share/skel/dot.profile 337497 2018-08-08 19:24:20Z asomers $ | ||
| 2 | # | ||
| 3 | # .profile - Bourne Shell startup script for login shells | ||
| 4 | # | ||
| 5 | # see also sh(1), environ(7). | ||
| 6 | # | ||
| 7 | |||
| 8 | # These are normally set through /etc/login.conf. You may override them here | ||
| 9 | # if wanted. | ||
| 10 | # PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:$HOME/bin; export PATH | ||
| 11 | # BLOCKSIZE=K; export BLOCKSIZE | ||
| 12 | |||
| 13 | # Setting TERM is normally done through /etc/ttys. Do only override | ||
| 14 | # if you're sure that you'll never log in via telnet or xterm or a | ||
| 15 | # serial line. | ||
| 16 | # TERM=xterm; export TERM | ||
| 17 | |||
| 18 | EDITOR=emacs; export EDITOR | ||
| 19 | PAGER=less; export PAGER | ||
| 20 | |||
| 21 | # set ENV to a file invoked each time sh is started for interactive use. | ||
| 22 | ENV=$HOME/.shrc; export ENV | ||
| 23 | |||
| 24 | # Query terminal size; useful for serial lines. | ||
| 25 | if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi | ||
| 26 | |||
| 27 | |||
| 28 | ## customs ## | ||
| 29 | export PS1="[\u@\[\033[0;32m\]\H\[\033[00m\] \w]\\$ " | ||
| 30 | |||
| 31 | export HISTSIZE=10000 | ||
| 32 | export HISTCONTROL=ignorespace:erasedups | ||
| 33 | export CLICOLOR=yes | ||
| 34 | shopt -s checkwinsize | ||
| 35 | |||
| 36 | alias s='screen -r' | ||
| 37 | alias home='cd /usr/local/www/data-dist/simeon' | ||
| 38 | alias youtube-dl='/usr/local/bin/youtube-dl -f best -o "%(title)s.%(ext)s"' | ||
| 39 | |||
| 40 | # logins # | ||
| 41 | alias bb='ssh -2 -4 sb' | ||
| 42 | alias lblackmore='ssh -2 -4 b' | ||
| 43 | alias lfg='ssh -2 -4 fg' | ||
| 44 | alias lheep='/usr/local/bin/ssh -2 -4 hb' | ||
| 45 | alias lrasp='ssh -2 -4 rp' | ||
| 46 | alias glover='ssh -2 -4 gl' | ||
| 47 | alias lsbjail01='ssh -2 -4 sb-jail01' | ||
| 48 | alias lsbjail02='ssh -2 -4 sb-jail02' | ||
| 49 | ########## | ||
| 50 | |||
| 51 | ## mutt ## | ||
| 52 | alias mgsgs='mutt -F ~/.muttrc.sgs_gmail' | ||
| 53 | alias mblackmore='mutt -F ~/.muttrc.pichove' | ||
| 54 | alias mgueorgss='mutt -F ~/.muttrc.gueorgss_gmail' | ||
| 55 | ########## | ||
| 56 | |||
| 57 | export LANG=en_US.UTF-8 | ||
| 58 | |||
| 59 | [[ $PS1 && -f /usr/local/share/bash-completion/bash_completion.sh ]] && \ | ||
| 60 | source /usr/local/share/bash-completion/bash_completion.sh | ||
