-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig-fast-copy-k
executable file
·45 lines (39 loc) · 1.37 KB
/
config-fast-copy-k
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
#!/bin/sh
#
# Filename: config-fast-copy-k
# Author: Olivier Sirol <czo@free.fr>
# License: GPL-2.0 (http://www.gnu.org/copyleft)
# File Created: 12 May 1999
# Last Modified: Saturday 30 March 2024, 17:31
# $Id: config-fast-copy-k,v 1.7 2024/03/30 16:31:40 czo Exp $
# Edit Time: 6:14:56
# Description:
#
# copy my config files (you must do a "cd" before running this script)
# curl -fsSL https://gitlab.com/czo/dotfiles/raw/master/config-fast-copy | sh
# curl -fsSL https://raw.githubusercontent.com/czodroid/dotfiles/master/config-fast-copy | bash
#
# test ssl -k:
# curl -k -fsSLO $GIT/$f
# wget --no-check-certificate -q $GIT/$f -O $f
#
# Copyright: (C) 1999-2024 Olivier Sirol <czo@free.fr>
## gitlab origin
# GIT='https://gitlab.com/czo/dotfiles/raw/master'
## github origin
GIT='https://raw.githubusercontent.com/czodroid/dotfiles/master'
echo "## -> copy my config files"
mkdir -p .config/htop
mkdir -p .config/mc
chmod 700 .config/mc
echo " <- .tmate.conf"
rm -f .tmate.conf
ln -s .tmux.conf .tmate.conf
for f in .bashrc .clang-format .cshrc .cvsrc .gitconfig .inputrc .pep8 .perltidyrc .phpcs.xml .prettierrc .profile .screenrc .tmux.conf .vimrc .Xresources .zshrc .config/htop/htoprc .config/mc/ini .config/mc/panels.ini
do
echo " <- $f"
curl -k -fsSL $GIT/$f -o $f
done
echo " <- /etc/czolsb"
curl -k -fsSL $GIT/czolsb -o /etc/czolsb
chmod 755 /etc/czolsb