#!/bin/sh # # Filename: config-fast-copy-lab # Author: Olivier Sirol # 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-lab,v 1.5 2024/03/30 16:31:40 czo Exp $ # Edit Time: 6:17:11 # 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 | sh # # test ssl -k: # curl -k -fsSLO $GIT/$f # wget --no-check-certificate -q $GIT/$f -O $f # # Copyright: (C) 1999-2024 Olivier Sirol ## 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 -fsSL $GIT/$f -o $f done echo " <- /etc/czolsb" curl -fsSL $GIT/czolsb -o /etc/czolsb chmod 755 /etc/czolsb