summaryrefslogtreecommitdiff
path: root/FreeBSD
diff options
context:
space:
mode:
authorSimeon Simeonov2020-12-08 18:15:34 +0100
committerSimeon Simeonov2020-12-08 18:15:34 +0100
commit0649df5f49e497749b5ded4b675c6874d55fb9e8 (patch)
tree0cea97f49d4b9915d85706745702fc97f49fd7fa /FreeBSD
Initial commit (FreeBSD and Gentoo)
Diffstat (limited to 'FreeBSD')
-rw-r--r--FreeBSD/root/.profile54
-rw-r--r--FreeBSD/user/.profile60
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#
3PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin:~/bin
4export PATH
5HOME=/root
6export HOME
7TERM=${TERM:-xterm}
8export TERM
9PAGER=less
10export PAGER
11
12# Query terminal size; useful for serial lines.
13if [ -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 ##
20PS1="[\[\033[01;32m\]\u\[\033[00m\]@\h \w]\\$ "; export PS1
21
22export HISTSIZE=10000
23export HISTCONTROL=ignorespace:erasedups
24shopt -s checkwinsize
25
26alias s='screen -r'
27alias vi='vim'
28alias invoke='/usr/local/bin/invoke -p'
29alias pfssh='pfctl -t ssh_abusers -T show | tr -d " "'
30alias pfexempted='pfctl -t ssh_exempted -T show | tr -d " "'
31alias pfhttp='pfctl -t http_abusers -T show | tr -d " "'
32alias pfsmtp='pfctl -t smtp_abusers -T show | tr -d " "'
33alias pftelnet='pfctl -t telnet_abusers -T show | tr -d " "'
34alias pfscanner='pfctl -v -t scanner_abusers -T show | tr -d " "'
35alias pfsshscanner='pfctl -v -t ssh_scanner_abusers -T show | tr -d " "'
36alias pfpermitted='pfctl -t ssh_permitted_networks -T show | tr -d " "'
37alias pfadd='pfctl -t ssh_abusers -T add'
38alias pfdel='pfctl -t ssh_abusers -T delete'
39# alias snfs='service nfsd stop && service mountd stop && service rpcbind stop'
40
41export LANG=en_US.UTF-8
42export EDITOR=/usr/local/bin/emacs
43
44export PASSPHRASE=foo
45
46alias 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/'
47alias 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
49alias 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/'
50alias 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
18EDITOR=emacs; export EDITOR
19PAGER=less; export PAGER
20
21# set ENV to a file invoked each time sh is started for interactive use.
22ENV=$HOME/.shrc; export ENV
23
24# Query terminal size; useful for serial lines.
25if [ -x /usr/bin/resizewin ] ; then /usr/bin/resizewin -z ; fi
26
27
28## customs ##
29export PS1="[\u@\[\033[0;32m\]\H\[\033[00m\] \w]\\$ "
30
31export HISTSIZE=10000
32export HISTCONTROL=ignorespace:erasedups
33export CLICOLOR=yes
34shopt -s checkwinsize
35
36alias s='screen -r'
37alias home='cd /usr/local/www/data-dist/simeon'
38alias youtube-dl='/usr/local/bin/youtube-dl -f best -o "%(title)s.%(ext)s"'
39
40# logins #
41alias bb='ssh -2 -4 sb'
42alias lblackmore='ssh -2 -4 b'
43alias lfg='ssh -2 -4 fg'
44alias lheep='/usr/local/bin/ssh -2 -4 hb'
45alias lrasp='ssh -2 -4 rp'
46alias glover='ssh -2 -4 gl'
47alias lsbjail01='ssh -2 -4 sb-jail01'
48alias lsbjail02='ssh -2 -4 sb-jail02'
49##########
50
51## mutt ##
52alias mgsgs='mutt -F ~/.muttrc.sgs_gmail'
53alias mblackmore='mutt -F ~/.muttrc.pichove'
54alias mgueorgss='mutt -F ~/.muttrc.gueorgss_gmail'
55##########
56
57export 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