Giter Club home page Giter Club logo

dotfiles's Introduction

Hi there ๐Ÿ‘‹

I am polishing my dotfiles and learing features of github, and probably going to use GH for my pet projects.

leave your comments on the discussions page

dotfiles's People

Contributors

orleanski avatar

Stargazers

 avatar  avatar

Watchers

 avatar

dotfiles's Issues

Makefile snippet for bootstrapping

homedir: #{{{ prep my home environment with all the config files
	echo "I am about to empty your homedir"
        read -sn 1 -p "ctrl-C to abort or Press any key to proceed."
        echo "nah, just checking you are not a cat, let's try again"
        read -sn 1 -p "ctrl-C to abort or Press any key to proceed."
	rm -rf  $HOME/*
	echo "cloning dotfile repo"
	yadm clone yadm clone https://github.com/vyvox/dotfiles.git
	echo "TODO make the snippet prettier"
	echo "removing .github dir with README and LICENSE files"
	rm -rf $HOME/.github
# }}}

wget

alias wget='wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"'

vs

export WGETRC="$XDG_CONFIG_HOME/wgetrc"
and add the following as an alias for wget:
wget --hsts-file="$XDG_CACHE_HOME/wget-hsts"
or set the hsts-file variable with an absolute path as wgetrc does not support environment variables:
echo hsts-file \= "$XDG_CACHE_HOME"/wget-hsts >> "$XDG_CONFIG_HOME/wgetrc"

Bash history file

Add .local/share/bash for the bash history file, so it wouldn't complain.

user-dirs

I am thinking user-dirs structure alteration

Desktop
Documents
    Documents/Templates
Downloads
Media
    Media/Pictures
    Media/Music
    Media/Videos
Projects
Public

systemwide xdg file

/etc/profile.d/xdg.sh

# http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
test "$XDG_CACHE_HOME"  || export XDG_CACHE_HOME="$HOME/.cache"
test "$XDG_CONFIG_HOME" || export XDG_CONFIG_HOME="$HOME/.config"
test "$XDG_DATA_HOME"   || export XDG_DATA_HOME="$HOME/.local/share"

local export of XDG dirs

dirs4xdg.sh

#!/bin/sh
test -f ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && \
source ${XDG_CONFIG_HOME:-~/.config}/user-dirs.dirs && \
#export XDG_DESKTOP_DIR XDG_DOWNLOAD_DIR XDG_TEMPLATES_DIR XDG_PUBLICSHARE_DIR XDG_DOCUMENTS_DIR XDG_MUSIC_DIR XDG_PICTURES_DIR XDG_VIDEOS_DIR XDG_SCREENSHOTS_DIR XDG_BACKGROUNDS_DIR XDG_PROJECTS_DIR
[ -d "${XDG_DESKTOP_DIR}:-$HOME/Desktop" ] || mkdir -p ${XDG_DESKTOP_DIR}
[ -d "${XDG_DOCUMENTS_DIR}:-$HOME/Documents" ] || mkdir -p ${XDG_DOCUMENTS_DIR}
[ -d "${XDG_TEMPLATES_DIR}:-$HOME/Documents/Templates" ] || mkdir -p ${XDG_TEMPLATES_DIR}
[ -d "${XDG_DOWNLOAD_DIR}:-$HOME/Downloads" ] || mkdir -p ${XDG_DOWNLOAD_DIR}
[ -d "${XDG_PUBLICSHARE_DIR}:-$HOME/Public" ] || mkdir -p ${XDG_PUBLICSHARE_DIR}
[ -d "${XDG_MUSIC_DIR}:-$HOME/Media/Music" ] || mkdir -p ${XDG_MUSIC_DIR}
[ -d "${XDG_VIDEOS_DIR}:-$HOME/Media/Videos" ] || mkdir -p ${XDG_VIDEOS_DIR}
[ -d "${XDG_PICTURES_DIR}:-$HOME/Media/Pictures" ] || mkdir -p ${XDG_PICTURES_DIR}
[ -d "${XDG_BACKGROUNDS_DIR}:-$HOME/Media/Picture/Backgrounds" ] || mkdir -p ${XDG_BACKGROUNDS_DIR}
[ -d "${XDG_SCREENSHOTS_DIR}:-$HOME/Media/Picture/Screenshots" ] || mkdir -p ${XDG_SCREENSHOTS_DIR}
[ -d "${XDG_PROJECTS_DIR}:-$HOME/Projects" ] || mkdir -p ${XDG_PROJECTS_DIR}

chmod 700 ${XDG_CACHE_HOME} ${XDG_CONFIG_HOME} ${XDG_DATA_HOME}

systemwide bashrc

In the /etc/bash/bashrc add


# XDG_CONFIG_HOME is set in /etc/profile.d/xdg.sh
# Move .bashrc to ${XDG_CONFIG_HOME}/bash/bashrc

source ${XDG_CONFIG_HOME}/bash/bashrc

systemwide sandbox

files that needs correction from $HOME/ to ${XDG_CONFIG_HOME}/X11/

  • /etc/sandbox.conf

Files that will be affected:

  • .bash_history

systemwide X11

files that needs correction from $HOME/ to ${XDG_CONFIG_HOME}/X11/

  • /etc/X11/xinit/xinitrc
  • /etc/X11/Sessions/Xsession
  • /etc/X11/Sessions/Fluxbox

Files that will be affected:

  • .Xresources
  • .xsession
  • .xsession-errors
  • .Xmodmap
  • .Xkbmap
  • .Xclients

populate TEMPLATES directory

Place empty or partially filled files in the TEMPLATE folder:

bash script.sh
bash script root.sh
Markdown document.md
ODF Spreadsheet.ods
ODF Text Document.odt
LaTeX document.tex

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.