Skip to content

Commit

Permalink
config updates
Browse files Browse the repository at this point in the history
  • Loading branch information
moukoublen committed Jan 7, 2025
1 parent d4cbe59 commit c900a43
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 54 deletions.
22 changes: 3 additions & 19 deletions config/bat/install-config
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#!/usr/bin/env bash

SRC="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

CONF_PATH="${HOME}/.config/bat"
# if [[ $(uname) = "Darwin" ]]; then
# CONF_PATH="${HOME}/.config/bat"
Expand All @@ -8,22 +10,4 @@ mkdir -p "${CONF_PATH}"

SELF_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"

__install_settings_file() {
local cnf_file=$1
local trg_file=${2:-${cnf_file}}

local ORIGIN="${SELF_PATH}/${cnf_file}"
local TARGET="${CONF_PATH}/${trg_file}"

# if file exists, backup.
[[ -f ${TARGET} ]] && [[ ! -L ${TARGET} ]] && mv "${TARGET}"{,.backup}

# if link already exists, return.
[[ -L ${TARGET} ]] && echo "Link for ${cnf_file} already exists" && return

# install sym link
echo -e "Linking \e[0;35m${ORIGIN}\e[0m -> \e[0;36m${TARGET}\e[0m"
ln -s "${ORIGIN}" "${TARGET}"
}

__install_settings_file 'config'
lnx "${SRC}/config" "${CONF_PATH}/config"
77 changes: 42 additions & 35 deletions config/dircolors/.dir_colors
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Configuration file for dircolors, a utility to help you set the
# LS_COLORS environment variable used by GNU ls with the --color option.
# Copyright (C) 1996-2023 Free Software Foundation, Inc.
# Copyright (C) 1996-2024 Free Software Foundation, Inc.
# Copying and distribution of this file, with or without modification,
# are permitted provided the copyright notice and this notice are preserved.
#
Expand Down Expand Up @@ -93,52 +93,59 @@ EXEC 01;32
#.sh 01;32
#.csh 01;32
# archives or compressed (bright red)
.tar 01;31
.tgz 01;31
.7z 01;31
.ace 01;31
.alz 01;31
.apk 01;31
.arc 01;31
.arj 01;31
.taz 01;31
.lha 01;31
.lz4 01;31
.lzh 01;31
.lzma 01;31
.tlz 01;31
.txz 01;31
.tzo 01;31
.t7z 01;31
.zip 01;31
.z 01;31
.bz 01;31
.bz2 01;31
.cab 01;31
.cpio 01;31
.crate 01;31
.deb 01;31
.drpm 01;31
.dwm 01;31
.dz 01;31
.ear 01;31
.egg 01;31
.esd 01;31
.gz 01;31
.jar 01;31
.lha 01;31
.lrz 01;31
.lz 01;31
.lz4 01;31
.lzh 01;31
.lzma 01;31
.lzo 01;31
.xz 01;31
.zst 01;31
.tzst 01;31
.bz2 01;31
.bz 01;31
.pyz 01;31
.rar 01;31
.rpm 01;31
.rz 01;31
.sar 01;31
.swm 01;31
.t7z 01;31
.tar 01;31
.taz 01;31
.tbz 01;31
.tbz2 01;31
.tgz 01;31
.tlz 01;31
.txz 01;31
.tz 01;31
.deb 01;31
.rpm 01;31
.jar 01;31
.tzo 01;31
.tzst 01;31
.udeb 01;31
.war 01;31
.ear 01;31
.sar 01;31
.rar 01;31
.alz 01;31
.ace 01;31
.zoo 01;31
.cpio 01;31
.7z 01;31
.rz 01;31
.cab 01;31
.whl 01;31
.wim 01;31
.swm 01;31
.dwm 01;31
.esd 01;31
.xz 01;31
.z 01;31
.zip 01;31
.zoo 01;31
.zst 01;31
# image formats
.avif 01;35
.jpg 01;35
Expand Down

0 comments on commit c900a43

Please sign in to comment.