Jason Ryan avatar Jason Ryan committed 3e332e2

Fixed XDG_ and new italics terminfo
Thanks to Earnestly for the tic…

Comments (0)

Files changed (3)

 set-option -g default-shell /bin/zsh
 
 # set correct term
-set -g default-terminal screen-256color
+set -g default-terminal "screen-256color-italics"
 
 # set prefix key to ctrl+t
 unbind C-b
 export LESS_TERMCAP_ue=$'\E[0m'
 export LESS_TERMCAP_us=$'\E[01;32m'
 
+# setup default dirs
+[ "$XDG_CACHE_HOME" ] || export XDG_CACHE_HOME="$HOME/.cache"
+[ "$XDG_CONFIG_HOME" ] || export XDG_CONFIG_HOME="$HOME/.config"
+[ "$XDG_DATA_HOME" ] || export XDG_DATA_HOME="$HOME/.local/share"
+
 # ruby settings
 if [[ -e /usr/share/chruby ]]; then
     source /usr/share/chruby/{chruby,auto}.sh
 alias irc="rm -f $HOME/.irssi/saved_colors && irssi"
 
 ######## Pacman ########
-
-
-# sudo pacman -Syu by typing pacup (sudo must be installed and configured first)
+# update 
 alias pacup="sudo pacman -Syu"
 
-# Clean cache
-alias clean="sudo pacman -Sc"
-
 # Remove orphans
-alias orphans="pacman -Qtdq > ~/orphans.txt && less orphans.txt"
+alias orphans="pacman -Qtdq"
 
 # sudo pacman backup packages to Dropbox
 alias pacback='pacman -Qqe | grep -v "$(pacman -Qmq)" > ~/Dropbox/Archer/pklist-new.txt'
 
-# coloured repo search
-search() {
-       echo -e "$(pacman -Ss $@ | sed \
-       -e 's#core/.*#\\033[1;31m&\\033[0;37m#g' \
-       -e 's#extra/.*#\\033[0;32m&\\033[0;37m#g' \
-       -e 's#community/.*#\\033[1;35m&\\033[0;37m#g' \
-       -e 's#^.*/.* [0-9].*#\\033[0;36m&\\033[0;37m#g' )"
-}
 
-# Mounts 
+### Mounts ### 
 alias centurion="sudo mount.nfs 192.168.1.100:/home/jason /media/Centurion"
 alias sentinel="sudo mount.nfs 192.168.1.200:/home/jason/Backups /media/Sentinel"
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.