Misc: file hierarchy reorganization

master
Pierre Neidhardt 2013-07-03 23:24:01 +02:00
parent c464f4ff0e
commit f74cd971c1
4 changed files with 26 additions and 17 deletions

View File

@ -9,6 +9,4 @@ highlight article "^Author:" blue default bold
highlight article "^Links?:" yellow default bold highlight article "^Links?:" yellow default bold
highlight article "^Date:" magenta default bold highlight article "^Date:" magenta default bold
cache-file "~/.cache/newsbeuter/cache.db"
## End ## End

View File

@ -23,7 +23,7 @@ directory = ~/temp
# Default session directory. Make sure you don't run multiple instance # Default session directory. Make sure you don't run multiple instance
# of rtorrent using the same session directory. Perhaps using a # of rtorrent using the same session directory. Perhaps using a
# relative path? # relative path?
session = ~/.session session = ~/.cache/rtorrent
# Watch a directory for new torrents, and stop those that have been # Watch a directory for new torrents, and stop those that have been
# deleted. # deleted.
@ -74,11 +74,11 @@ encryption = allow_incoming,require,require_RC4
# May be set to "disable" (completely disable DHT), "off" (do not start DHT), # May be set to "disable" (completely disable DHT), "off" (do not start DHT),
# "auto" (start and stop DHT as needed), or "on" (start DHT immediately). # "auto" (start and stop DHT as needed), or "on" (start DHT immediately).
# The default is "off". For DHT to work, a session directory must be defined. # The default is "off". For DHT to work, a session directory must be defined.
# #
dht = auto dht = auto
# UDP port to use for DHT. # UDP port to use for DHT.
# #
# dht_port = 6881 # dht_port = 6881
# Enable peer exchange (for torrents not marked private) # Enable peer exchange (for torrents not marked private)

View File

@ -3,6 +3,7 @@
RMLIST="$HOME/.cache/dwb RMLIST="$HOME/.cache/dwb
$HOME/.cache/emacs $HOME/.cache/emacs
$HOME/.cache/mutt $HOME/.cache/mutt
$HOME/.cache/rtorrent
$HOME/.cmus/autosave $HOME/.cmus/autosave
$HOME/.cmus/cache $HOME/.cmus/cache
$HOME/.cmus/lib.pl $HOME/.cmus/lib.pl
@ -12,18 +13,15 @@ $HOME/.cmus/resume
$HOME/.cmus/search-history $HOME/.cmus/search-history
$HOME/.config/gtk-2.0 $HOME/.config/gtk-2.0
$HOME/.config/gtk-3.0 $HOME/.config/gtk-3.0
$HOME/.config/newsbeuter/cache.db
$HOME/.config/newsbeuter/history.cmdline
$HOME/.config/newsbeuter/history.search
$HOME/.config/ranger/bookmarks $HOME/.config/ranger/bookmarks
$HOME/.config/ranger/history $HOME/.config/ranger/history
$HOME/.config/ranger/tagged $HOME/.config/ranger/tagged
$HOME/.gtk-bookmarks $HOME/.gtk-bookmarks
$HOME/.local/share/newsbeuter $HOME/.local/share/newsbeuter
$HOME/.local/share/webkit $HOME/.local/share/webkit
$HOME/.mutt-pwds.cpt $HOME/.mutt.pwds.cpt
$HOME/.session/*
$HOME/.ssh $HOME/.ssh
$HOME/.w3m
$HOME/.zcompdump $HOME/.zcompdump
$HOME/.zdirs $HOME/.zdirs
$HOME/.zshhistfile" $HOME/.zshhistfile"
@ -42,15 +40,26 @@ if [ "$CHOICE" != "Y" ]; then
fi fi
## Delete git repo if any. ## Delete git repo if any.
[ -d "$HOME"] && rm -rvf "$HOME/.git" if [ -d "$HOME/.git" ]; then
echo
echo "==> Cleaning git repo."
rm -rf "$HOME/.git"
fi
## Delete Dropbox folder if any. ## Delete Dropbox folder if any.
[ -d "$HOME" ] && rm -rvf "$HOME/Dropbox" && rm -rvf "$HOME/.dropbox" if [ -d "$HOME/Dropbox" ] || [ -d "$HOME/.dropbox" ]; then
echo
echo "==> Cleaning Dropbox folder."
rm -rvf "$HOME/Dropbox"
rm -rvf "$HOME/.dropbox"
fi
## Clean trash if possible. ## Clean trash if possible.
if [ -z "$(command -v trash-empty)" ]; then if [ -z "$(command -v trash-empty)" ]; then
echo echo
echo "==> 'trash-empty' not installed, you have to clean trash manually." echo "==> Emptying trash."
echo ":: 'trash-empty' not installed, you have to clean trash manually."
rm -rvf "$HOME/.local/share/Trash"
else else
echo echo
echo "==> Emptying trash." echo "==> Emptying trash."

View File

@ -10,7 +10,7 @@ SOURCEDIR="$HOME/personal/dataperso"
## Temp folder ## Temp folder
echo "==> 'temp' folder" echo "==> 'temp' folder"
mkdir -p temp mkdir -p "$HOME/temp"
echo echo
## Emacsclient launcher. Required for best emacsclient integration. For a fully ## Emacsclient launcher. Required for best emacsclient integration. For a fully
@ -65,7 +65,7 @@ if [ -n "$(command -v mutt)" ]; then
echo echo
fi fi
if [ -d "$SOURCEDIR" ]; then if [ -d "$SOURCEDIR/todo" ]; then
echo "==> To-Do" echo "==> To-Do"
ln -snf "$SOURCEDIR/todo/todo.org" "$HOME/todo.org" ln -snf "$SOURCEDIR/todo/todo.org" "$HOME/todo.org"
echo echo
@ -73,7 +73,9 @@ fi
if [ -n "$(command -v rtorrent)" ]; then if [ -n "$(command -v rtorrent)" ]; then
echo "==> rtorrent" echo "==> rtorrent"
mkdir -p "$HOME/.session" mkdir -p "$HOME/.cache/rtorrent"
## TODO: the mkdir with the awk command does not get expanded properly. Why?
# mkdir -p "$(awk -F'=' '/^session *= */{gsub(/^ +| +$/,"",$2); gsub(/~/,"$HOME",$2); res=$2} END {printf res}' ~/.rtorrent.rc)"
echo echo
fi fi