Commit 78d4b0f2 authored by Hund's avatar Hund

Minor changes

parent 6a30cdac
! Urxvt
!
! URxvt
!
URxvt*termName: rxvt-256color
URxvt.cursorUnderline: false
URxvt.cursorBlink: false
......@@ -9,34 +12,84 @@ URxvt*hold: boolean
URxvt.intensityStyles: false
!URxvt.perl-ext-common: default,matcher,clipboard,keyboard-select,selection_to_clipboard
URxvt.perl-ext-common: default,matcher,clipboard,keyboard-select
URxvt*urgentOnBell: false
!
! URLs
!
URxvt.matcher.rend.0: Uline Bold fg6
URxvt.keysym.Control-l: perl:matcher:last
URxvt.keysym.Control-u: perl:matcher:list
!
! Clickable URLs
!
URxvt.url-launcher: qutebrowser
URxvt.matcher.button: 1
!
! Paste
!
!URxvt.keysym.Shift-Control-V: perl:clipboard:paste
!URxvt.iso14755: False
!
! Fonts
!
URxvt.letterSpace: 0
URxvt*font:xft:Terminus:size=12, \
URxvt*font:xft:xos4Terminus:size=12, \
xft:unifont:medium
URxvt*boldFont:xft:Terminus:size=12, \
URxvt*boldFont:xft:xos4Terminus:size=12, \
xft:unifont:medium
! Select text with keyboard
!
! Select text with the keyboard
!
URxvt.keysym.M-Escape: perl:keyboard-select:activate
!
! Search text with keyboard
!
URxvt.keysym.M-s: perl:keyboard-select:search
!
! Fix for Home and End keys
!
URxvt.keysym.Home: \033[1~
URxvt.keysym.End: \033[4~
URxvt.keysym.KP_Home: \033[1~
URxvt.keysym.KP_End: \033[4~
!
! Cursor theme
!
Xcursor.theme: Vanilla-DMZ
!
! Rofi
!
rofi.color-enabled: true
rofi.color-window: #002b36, #255662, #0d4350
rofi.color-normal: #002b36, #839496, #002b36, #0d4350, #839496
rofi.color-active: #0d4350, #2aa198, #002b36, #839496, #002B36
rofi.color-urgent: #a83838, #ffffff, #eee8d5, #a83838, #ffffff
!rofi.monitor: 0
rofi.font: xos4Terminus
!
! Colors
!
#define S_yellow #b58900
#define S_orange #cb4b16
#define S_red #dc322f
......@@ -57,8 +110,8 @@ URxvt.keysym.M-s: perl:keyboard-select:search
URxvt.background: S_base03
URxvt.foreground: S_base0
*fading: 0
*fadeColor: S_base03
*fading: 0
*fadeColor: S_base03
URxvt.cursorColor: S_base1
*pointerColorBackground:S_base01
*pointerColorForeground:S_base1
......@@ -79,10 +132,3 @@ URxvt.color12: S_base0
URxvt.color13: S_violet
URxvt.color14: S_base1
URxvt.color15: S_base3
! Rofi color theme
rofi.color-enabled: true
rofi.color-window: #002b36, #255662, #0d4350
rofi.color-normal: #002b36, #839496, #002b36, #0d4350, #839496
rofi.color-active: #0d4350, #2aa198, #002b36, #839496, #002B36
rofi.color-urgent: #a83838, #ffffff, #eee8d5, #a83838, #ffffff
This diff is collapsed.
# Colorscheme
#set colorscheme solarized
set colorscheme solarized
# Enable the mouse support?
set mouse_enabled false
......@@ -7,18 +7,26 @@ set mouse_enabled false
# Additional sorting options
set sort_unicode false
# Navigation
map h move left=1
map j move down=1 pages=False
map k move up=1 pages=False
map l move right=1
# Navigate a bit faster
map J move down=5 pages=False
map K move up=5 pages=False
map J move down=3 pages=False
map K move up=3 pages=False
copymap J <C-D>
copymap K <C-U>
# atool
map Px shell atool -x %s
map Pa shell atool -a %s.tar %s
map Pr shell unrar x %s
map PR shell unrar x %s/*.rar
map px shell atool -x %s
map pa shell atool -a %s.tar %s
map pr shell unrar x %s
# ownCloud
map U shell shareLinkCreator %s
#mkdir
map Md console mkdir
......@@ -37,7 +45,31 @@ map cc copy
map D console delete
# Show hidden files
map H toggle_option show_hidden
map H toggle_option show_hidden
# Image previews
# Use one of the supported image preview protocols
set preview_images true
# Set the preview image method. Supported methods:
#
# * w3m (default):
# Preview images in full color with the external command "w3mimgpreview"?
# This requires the console web browser "w3m" and a supported terminal.
# It has been successfully tested with "xterm" and "urxvt" without tmux.
#
# * iterm2:
# Preview images in full color using iTerm2 image previews
# (http://iterm2.com/images.html). This requires using iTerm2 compiled
# with image preview support.
#
# * urxvt:
# Preview images in full color using urxvt image backgrounds. This
# requires using urxvt compiled with pixbuf support.
#
# * urxvt-full:
# The same as urxvt but utilizing not only the preview pane but the
# whole terminal window.
set preview_images_method urxvt
# Set wallpaper
map W shell cp %s ~/.wallpaper && feh --no-xinerama --bg-fill ~/.wallpaper
text/html; icecat %s &; test=test -n "$DISPLAY"; needsterminal;
#text/html; qutebrowser %s &; test=test -n "$DISPLAY"; needsterminal;
text/html; mv %s %s.html && qutebrowser %s.html >/dev/null 2>/dev/null; needsterminal;
text/html; w3m -I %{charset} -T text/html; copiousoutput;
image/png; icecat %s &; test=test -n "$DISPLAY"; needsterminal;
image/jpeg; /usr/bin/feh -. '%s'; description=JPEG Image; test=test -n "$DISPLAY"; nametemplate=%s.jpg
image/png; /usr/bin/feh -. '%s'; description=PNG Image; test=test -n "$DISPLAY"; nametemplate=%s.png
image/gif; /usr/bin/feh -. '%s'; description=GIF Image; test=test -n "$DISPLAY"; nametemplate=%s.gif
application/pdf; zathura %s; test=test -n "$DISPLAY"; needsterminal;
video/x-youtube; youtube-dl -q -o - '%s' | mpv; test=test -n "$DISPLAY"
......@@ -17,23 +17,24 @@ map -count -modes=n <C-v> -builtin <count><C-v><C-v>
map -count -modes=n <C-x> -builtin <count><C-v><C-x>
map -count -modes=n,v h -builtin <count>5h
map -count -modes=n,v j -builtin <count>5j
map -count -modes=n J -builtin <count>:tabnext<Return>
map -count -modes=n,v k -builtin <count>5k
map -count -modes=n K -builtin <count>:tabprevious<Return>
map -count -modes=n,v l -builtin <count>5l
map -count -modes=n H -builtin <count>:back<Return>
map -count -modes=n J -builtin <count>:tabnext<Return>
map -count -modes=n K -builtin <count>:tabprevious<Return>
map -count -modes=n L -builtin <count>:forward<Return>
map -count -modes=n <lt> -builtin <count>:tabmove!<Space>-1<Return>
map -count -modes=n pp -builtin <count>:private<Space>winopen<Return>
map -count -modes=n,v <C-s> -builtin <count><C-t>:preferences<Return>
map -count -modes=n,v <C-a> -builtin <count><C-t>:tabopen<Space>about:addons<Return>
#map -count -modes=n,v <C-a> -builtin i<count><C-t>:tabopen<Space>about:addons<Return>
map -count -modes=n,v <C-d> -builtin <count><C-t>:tabopen<Space>about:downloads<Return>
set defsearch=duckduckgo
set editor='urxvt -e vim -X'
set guioptions=s
set hintkeys=asdfhlkj
set guioptions=sBr
set hintkeys=asdfhjkl
set showtabline=multitab
set titlestring='Web Browser'
au Fullscreen * set guioptions=s
set titlestring='Pale Moon'
au Fullscreen * set guioptions=sBr
" vim: set ft=pentadactyl:
set showtabline=always
au LocationChange https://crowdin.com :normal! <C-z>
#--------------------
# Colours
#--------------------
#
# rTorrent settings
#
max_peers = 200
max_peers_seed = 100
max_uploads = 50
download_rate = 9000
upload_rate = 0
directory = /media/HDD0/Torrents/
session = /home/johan/.rtorrent/session
schedule = low_diskspace,5,60,close_low_diskspace=100M
port_range = 8881-8891
port_random = no
check_hash = no
encryption = allow_incoming,try_outgoing,enable_retry
dht = off
peer_exchange = no
#
# Colors
#
# 0 = black
# 1 = red
......@@ -19,31 +42,25 @@ color_dead_fg = 1
color_active_fg = 6
color_finished_fg = 2
#--------------------
max_peers = 200
max_peers_seed = 100
max_uploads = 50
download_rate = 0
upload_rate = 0
#
# Log
#
directory = /media/HDD0/Torrents/
session = /home/johan/.rtorrent/session
schedule = low_diskspace,5,60,close_low_diskspace=100M
#log.open_file = "rtorrent.log", "/tmp/rtorrent.log"
#log.add_output = "debug", "rtorrent.log"
#log.add_output = "info", "rtorrent.log"
#log.add_output = "error", "rtorrent.log"
#log.add_output = "notice", "rtorrent.log"
port_range = XYZ
port_random = no
#
# Notifications
#
check_hash = no
encryption = allow_incoming,try_outgoing,enable_retry
dht = off
peer_exchange = no
system.method.set_key = event.download.finished,notify_me,"execute=/home/johan/Scripts/rtorrent_notify.sh,$d.get_name="
#--------------------
#
# Folders
#--------------------
#
# Torrents
schedule = watch_directory_torrents, 5, 5, "load.start=/media/HDD0/Torrent-files/torrents/*.torrent,d.directory.set=/media/HDD0/Torrents"
#--------------------
REGEXP (((http|https|ftp|gopher)|mailto)[.:][^ >"\t]*|www\.[-a-z0-9.]+)[^ .,;\t>">\):]
COMMAND icecat %s
COMMAND qutebrowser %s
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" Syntax highlighting
syntax on
if v:progname =~? "evim"
finish
endif
" Clipboard
set clipboard+=unnamed
" Use Vim settings, rather than Vi settings (much better!).
" This must be first, because it changes other options as a side effect.
set nocompatible
" allow backspacing over everything in insert mode
set backspace=indent,eol,start
......@@ -24,9 +22,6 @@ set ruler " show the cursor position all the time
set showcmd " display incomplete commands
set incsearch " do incremental searching
" For Win32 GUI: remove 't' flag from 'guioptions': no tearoff menu entries
" let &guioptions = substitute(&guioptions, "t", "", "g")
" Don't use Ex mode, use Q for formatting
map Q gq
......@@ -34,45 +29,6 @@ map Q gq
" so that you can undo CTRL-U after inserting a line break.
inoremap <C-U> <C-G>u<C-U>
" In many terminal emulators the mouse works just fine, thus enable it.
if has('mouse')
set mouse=a
endif
" Only do this part when compiled with support for autocommands.
if has("autocmd")
" Enable file type detection.
" Use the default filetype settings, so that mail gets 'tw' set to 72,
" 'cindent' is on in C files, etc.
" Also load indent files, to automatically do language-dependent indenting.
filetype plugin indent off
" Put these in an autocmd group, so that we can delete them easily.
augroup vimrcEx
au!
" For all text files set 'textwidth' to 78 characters.
autocmd FileType text setlocal textwidth=78
" When editing a file, always jump to the last known cursor position.
" Don't do it when the position is invalid or when inside an event handler
" (happens when dropping a file on gvim).
" Also don't do it when the mark is in the first line, that is the default
" position when opening a file.
autocmd BufReadPost *
\ if line("'\"") > 1 && line("'\"") <= line("$") |
\ exe "normal! g`\"" |
\ endif
augroup END
else
set autoindent " always set autoindenting on
endif " has("autocmd")
" Convenient command to see the difference between the current buffer and the
" file it was loaded from, thus the changes you made.
" Only define it when not defined already.
......@@ -89,7 +45,6 @@ if has('langmap') && exists('+langnoremap')
endif
" Colorscheme
"colors delek
colors solarized
" Spellcheck
......@@ -109,7 +64,7 @@ set number
:set wrap
:set linebreak
:set nolist
:set textwidth=500
:set textwidth=5000
:set wrapmargin=0
:set formatoptions-=t
......@@ -156,19 +111,15 @@ set undodir=~/.vim/undodir
" Set the title
set title
" pathogen.vim makes it super easy to install plugins and runtime files in
" their own private directories.
"execute pathogen#infect()
" Tabs
map to :tabopen
map te :tabedit
map to :tabopen
map te :tabedit
map tc :tabclose<CR>
" Spell check
map <F2> :setlocal spell! spelllang=sv<CR>
map <F3> :setlocal spell! spelllang=en_us<CR>
map <F4> :set nospell<CR>
map <F3> :setlocal spell! spelllang=sv<CR>
map <F4> :setlocal spell! spelllang=en_us<CR>
map <F2> :set nospell<CR>
" Go to next misspelled word
map ff ]s
" Go to previous misspelled word
......@@ -183,8 +134,12 @@ map fr zuw
" Redo
map U :redo<CR>
" Repeat last edit
nmap § .
" Reorder ( and )
noremap ( )
noremap ) (
" Go to the of the previous word
noremap B ge
" Syntax highlightning for .md files
au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown
......@@ -193,7 +148,7 @@ au BufNewFile,BufFilePre,BufRead *.md set filetype=markdown
set ic
" When running a search, get Vim to highlight found words
"set hlsearch
set hlsearch
" Logic
set shiftwidth=4
......@@ -203,7 +158,7 @@ set tabstop=4
set shiftwidth=4
set expandtab
" Allow `h` and `l` to move you to previous/next line when reached
" Allow `j` and `ö` to move you to previous/next line when reached
set whichwrap+=>,l
set whichwrap+=<,h
......
# Basic directory operations
alias ..='cd ..'
alias mkdate='mkdir $(date +%Y-%m-%d)'
# List direcory contents
alias ls='ls --color=auto'
......@@ -8,77 +7,77 @@ alias ll='ls -lh --color=auto --g'
alias la='ls -lAh --color=auto --g'
alias llg='ls -la | grep'
alias lld='ls -l --sort=time -r'
alias lldl='ls -l --color=always --sort=time | less -R'
alias lls='ls -lAh --color=always "$@" | less -R'
# zsh
alias reload='source $HOME/.zshrc'
alias history='cat $HOME/.zsh/history'
alias cx='chmod +x'
# Configs
alias ez='vim $HOME/.zshrc'
alias ea='vim $HOME/.zsh/alias'
alias ei3='vim $HOME/.i3/config'
alias em='vim $HOME/.mutt/muttrc'
alias autostart='vim $HOME/.i3/autostart.sh'
alias c-zsh='vim $HOME/.zshrc'
alias c-alias='vim $HOME/.zsh/alias'
alias c-i3='vim $HOME/.i3/config'
alias c-mutt='vim $HOME/.mutt/muttrc'
alias c-autostart='vim $HOME/.i3/autostart.sh'
# Utils
# Applications
alias du='du -h --max-depth=1 "$@" | sort -k 1,1hr -k 2,2f'
alias df='df -h'
alias grep='grep --color=always'
# Applications
alias grep='grep -i --color=auto'
alias v='vim'
alias mpv='mpv --no-audio-display'
alias live="printf '\33]2;%s\007' "livestreamer-curses" && livestreamer-curses"
alias live="printf '\33]2;%s\007' "twitchy" && twitchy"
alias news="printf '\33]2;%s\007' "Newsbeuter" && newsbeuter -C $HOME/.config/newsbeuter/news/config -c $HOME/.config/newsbeuter/news/cache.db -u $HOME/.config/newsbeuter/news/urls"
alias yt="printf '\33]2;%s\007' "Newsbeuter" && newsbeuter -C $HOME/.config/newsbeuter/youtube/config -c $HOME/.config/newsbeuter/youtube/cache.db -u $HOME/.config/newsbeuter/youtube/urls"
alias yt="printf '\33]2;%s\007' 'Newsbeuter - YouTube' && newsbeuter -C $HOME/.config/newsbeuter/youtube/config -c $HOME/.config/newsbeuter/youtube/cache.db -u $HOME/.config/newsbeuter/youtube/urls"
alias mutt="printf '\33]2;%s\007' "Mutt" && mutt"
alias keepassc="printf '\33]2;%s\007' "KeePassC" && keepassc"
alias kp="printf '\33]2;%s\007' "KeePassC" && keepassc"
alias d="youtube-dl"
alias ps_mem="sudo ps_mem"
alias ps_mem="sudo python ~/Scripts/ps_mem.py"
alias setclip='xclip -selection c'
alias getclip='xclip -selection clipboard -o'
alias y="mpv --ytdl"
alias r="ranger"
alias t-stream-timeline="t stream timeline"
alias rsync-manual="sh $HOME/Scripts/rsync-notify.sh"
alias upload="owncloud-sharelink"
alias khal="printf '\33]2;%s\007' "Khal" && khal"
alias upload="shareLinkCreator"
alias bm="buku"
alias bm-list="buku -p"
alias bm-search="buku -s"
alias bm-add="buku -a"
alias y-channels='youtube-viewer -C --channels'
alias y-favorites='youtube-viewer -C -F'
alias y-search='youtube-viewer -C -s'
alias y-search-20='yt --results=20 -C -s'
alias y-subscriptions='youtube-viewer --resolution=1440p -C -SV --autohide'
alias y-user='youtube-viewer -C uv'
alias aa='atool -a'
alias ax='atool -x'
alias xa='XZ_OPT=-T4 tar cJfk'
alias xx='XZ_OPT=-T4 tar xf'
alias ffmpeg-record='ffmpeg -f alsa -i hw:0 -video_size 1920x1080 -framerate 30 -f x11grab -i :0.0+1920,0 -c:v libx264 -qp 0 -preset ultrafast'
alias p='sxiv'
alias vpn='sudo systemctl restart openvpn-client@client.service'
alias ts="printf '\33]2;%s\007' "t" && t stream timeline --decode_uris"
alias cal='khal interactive'
alias html2text='python $HOME/.bin/html2text.py'
alias diff='colordiff'
# Misc
alias c='clear'
alias reload-urxvt='xrdb -merge ~/.Xresources'
alias myip='curl ipinfo.io'
alias reboot='sudo killall conky && sleep 1 && sudo reboot'
alias blog='cd $HOME/git/Hund/hund.github.io/'
alias blog-run='cd $HOME/git/Hund/hund.github.io/ && jekyll serve --watch'
alias filmer_och_serier.md='vim $HOME/Documents/Filmer_och_serier.md'
alias read-it-later='vim $HOME/Documents/read_it_later.md'
# SSH
alias fjuppen='ssh fjuppen'
alias bosco='ssh bosco'
# Screen
alias irc='ssh fjuppen -t "screen -U -r irc"'
alias rtorrent='echo -e "\e]0;rTorrent\a" && ssh fjuppen -t "screen -U -r rtorrent"'
alias irc='autossh -M 0 -o "ServerAliveInterval 45" -o "ServerAliveCountMax 2" johan@fjuppen -t "screen -U -r irc"'
alias mc='ssh fjuppen -t "screen -U -r mc"'
# Create playlists
alias playlist-flac='ls -w 1 *.flac > 00-playlist.m3u'
alias playlist-ogg='ls -w 1 *.ogg > 00-playlist.m3u'
alias playlist-mp3='ls -w 1 *.mp3 > 00-playlist.m3u'
# Pacman / Pacaur
alias p="pacaur"
alias ps="pacaur -S"
alias pss="pacaur -Ss"
alias pr="pacaur -Rscn"
......@@ -87,15 +86,3 @@ alias pu="pacaur -Syu"
alias pacro="/usr/bin/pacman -Qtdq > /dev/null && sudo /usr/bin/pacman -Rns \$(/usr/bin/pacman -Qtdq | sed -e ':a;N;\$!ba;s/\n/ /g')"
alias pacc='sudo pacman -Scc'
alias ph='sh $HOME/Scripts/pacman-helper.sh'
# Directory shortcuts
alias hdd0='cd /media/HDD0'
alias pictures='cd /media/HDD0/Pictures'
alias wallpapers='cd /media/HDD0/Pictures/Wallpapers'
alias torrents='cd /media/HDD0/Torrents'
alias videos='cd /media/HDD0/Videos'
alias downloads='cd $HOME/Downloads'
alias music='cd /media/HDD0/Music'
# Github
alias dotfiles='cd ~/git/Hund/dotfiles'
#compdef buku
#
# Completion definition for buku.
#
# Author:
# Arun Prakash Jana <engineerarun@gmail.com>
#
setopt localoptions noshwordsplit noksharrays
local -a args
args=(
'(-a --add)'{-a,--add}'[add bookmark]:URL tags'
'(-c --comment)'{-c,--comment}'[comment on bookmark]'
'(--deep)--deep[search matching substrings]'
'(-d --delete)'{-d,--delete}'[delete bookmark]'
'(-e --export)'{-e,--export}'[export bookmarks]:html output file'
'(-h --help)'{-h,--help}'[show help]'
'(--immutable)--immutable[disable title update from web]:value'
'(-i --import)'{-i,--import}'[import bookmarks]:html imput file'
'(-k --unlock)'{-k,--unlock}'[decrypt database]'
'(-l --lock)'{-l,--lock}'[encrypt database]'
'(--markdown)--markdown[markdown mode]'
'(--merge)--merge[merge another buku database]:buku db file'
'(--noprompt)--noprompt[noninteractive mode]'
'(-o --open)'{-o,--open}'[open bookmark in browser]:bookmark index'
'(-p --print)'{-p,--print}'[show bookmark details]'
'(-r --replace)'{-r,--replace}'[replace a tag]:tag to replace'
'(-s --sany)'{-s,--sany}'[search any keyword]:keyword(s)'
'(-s --sall)'{-s,--sall}'[search all keywords]:keyword(s)'
'(--shorten)--shorten[shorten a URL]'
'(--sreg)--sreg[search by a regular exression]'
'(--stag)--stag[search by tag or show tags]'
'(--tacit)--tacit[reduce verbosity]'
'(--tag)--tag[set tags, use + to append, - to remove]'
'(-t --title)'{-t,--title}'[set custom title]'
'(-u --update)'{-u,--update}'[update bookmark]'
'(--upstream)--upstream[check latest upstream release]'
'(--url)--url[set url]'
)
_arguments -S -s $args
This diff is collapsed.
# 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, 1999-2010 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.
# The keywords COLOR, OPTIONS, and EIGHTBIT (honored by the
# slackware version of dircolors) are recognized but ignored.
# Below, there should be one TERM entry for each termtype that is colorizable
TERM Eterm
TERM ansi
TERM color-xterm
TERM con132x25
TERM con132x30
TERM con132x43
TERM con132x60
TERM con80x25
TERM con80x28
TERM con80x30
TERM con80x43
TERM con80x50
TERM con80x60
TERM cons25
TERM console
TERM cygwin
TERM dtterm
TERM eterm-color
TERM gnome
TERM gnome-256color
TERM jfbterm
TERM konsole
TERM kterm
TERM linux
TERM linux-c
TERM mach-color
TERM mlterm
TERM putty
TERM rxvt
TERM rxvt-256color
TERM rxvt-cygwin
TERM rxvt-cygwin-native
TERM rxvt-unicode
TERM rxvt-unicode256
TERM screen
TERM screen-256color
TERM screen-256color-bce
TERM screen-bce
TERM screen-w
TERM screen.linux
TERM vt100
TERM xterm
TERM xterm-16color
TERM xterm-256color
TERM xterm-88color
TERM xterm-color
TERM xterm-debian
# Below are the color init strings for the basic file types. A color init
# string consists of one or more of the following numeric codes:
# Attribute codes:
# 00=none 01=bold 04=underscore 05=blink 07=reverse 08=concealed
# Text color codes:
# 30=black 31=red 32=green 33=yellow 34=blue 35=magenta 36=cyan 37=white
# Background color codes:
# 40=black 41=red 42=green 43=yellow 44=blue 45=magenta 46=cyan 47=white
## dircolors 256 COLOR SUPPORT (see here: http://www.mail-archive.com/bug-coreutils@gnu.org/msg11030.html)
# Text 256 color coding:
# 38;5;COLOR_NUMBER
# Background 256 color coding:
# 48;5;COLOR_NUMBER
NORMAL 00;38;5;244 # no color code at all
#FILE 00 # regular file: use no color at all
RESET 0 # reset to "normal" color
DIR 00;38;5;33 # directory 01;34
LINK 01;38;5;33 # symbolic link. (If you set this to 'target' instead of a
# numerical value, the color is as for the file pointed to.)
MULTIHARDLINK 00 # regular file with more than one link
FIFO 48;5;230;38;5;136;01 # pipe
SOCK 48;5;230;38;5;136;01 # socket
DOOR 48;5;230;38;5;136;01 # door
BLK 48;5;230;38;5;244;01 # block device driver
CHR 48;5;230;38;5;244;01 # character device driver
ORPHAN 48;5;235;38;5;160 # symlink to nonexistent file, or non-stat'able file
SETUID 48;5;160;38;5;230 # file that is setuid (u+s)
SETGID 48;5;136;38;5;230 # file that is setgid (g+s)
CAPABILITY 30;41 # file with capability
STICKY_OTHER_WRITABLE 48;5;64;38;5;230 # dir that is sticky and other-writable (+t,o+w)
OTHER_WRITABLE 48;5;235;38;5;33 # dir that is other-writable (o+w) and not sticky
STICKY 48;5;33;38;5;230 # dir with the sticky bit set (+t) and not other-writable
# This is for files with execute permission:
EXEC 01;38;5;64
# List any file extensions like '.gz' or '.tar' that you would like ls
# to colorize below. Put the extension, a space, and the color init string.
# (and any comments you want to add after a '#')
# If you use DOS-style suffixes, you may want to uncomment the following:
#.cmd 01;32 # executables (bright green)
#.exe 01;32
#.com 01;32
#.btm 01;32
#.bat 01;32
# Or if you want to colorize scripts even if they do not have the
# executable bit actually set.
#.sh 01;32
#.csh 01;32
# archives or compressed (violet + bold for compression)
.tar 00;38;5;61
.tgz 01;38;5;61
.arj 01;38;5;61
.taz 01;38;5;61
.lzh 01;38;5;61
.lzma 01;38;5;61
.tlz 01;38;5;61
.txz 01;38;5;61
.zip 01;38;5;61
.z 01;38;5;61
.Z 01;38;5;61
.dz 01;38;5;61
.gz 01;38;5;61
.lz 01;38;5;61
.xz 01;38;5;61
.bz2 01;38;5;61
.bz 01;38;5;61
.tbz 01;38;5;61
.tbz2 01;38;5;61
.tz 01;38;5;61
.deb 01;38;5;61
.rpm 01;38;5;61
.jar 01;38;5;61
.rar 01;38;5;61
.ace 01;38;5;61
.zoo 01;38;5;61
.cpio 01;38;5;61
.7z 01;38;5;61
.rz 01;38;5;61
.apk 01;38;5;61
# image formats (yellow)
.jpg 00;38;5;136
.JPG 00;38;5;136 #stupid but needed
.jpeg 00;38;5;136
.gif 00;38;5;136
.bmp 00;38;5;136
.pbm 00;38;5;136
.pgm 00;38;5;136
.ppm 00;38;5;136
.tga 00;38;5;136