]>
git.rmz.io Git - dotfiles.git/blob - aliases
2 # this will allow aliasing any command after sudo
5 alias ls='ls --color=auto'
6 alias l
='ls --color=auto -F'
7 alias ls='ls --color=auto -F'
8 alias ll='ls -lh --color=auto -F'
9 alias la
='ls -lha --color=auto -F'
11 alias cp='cp -i --reflink=auto' # interactive + auto CoW
12 alias df
='df -h' # human-readable sizes
13 du
() { /usr
/bin
/du
-h ${@} | sort -h }
14 alias free
='free -m' # show sizes in MB
16 if [[ -n "${VIM_TERMINAL}" ]]; then
19 if [[ "${f:0:1}" == "-" ]]; then
20 echo "Running in Vim's terminal, not accepting options!" >&2
25 # drop the file onto the running vim instance
26 # see :h terminal-communication
27 echo -e "\e]51;[\"drop\", \"$f\"]\a"
33 #alias vp='vim PKGBUILD' # I have a script for that in ~/bin
34 alias vs
='vim SPLITBUILD'
38 # colours, I want more colours
39 [[ -x /usr
/bin
/colordiff
]] && alias diff='colordiff'
41 # colours and case insensitive search
47 # suspend screensaver when vlc is running
48 alias vlc
-suspend='xdg-screensaver suspend $(xprop -name vlc | grep "WM_CLIENT_LEADER(WINDOW)" | sed "s/.*\(0x\d*\)/\1/")'
51 alias :cp='rm -rf pkg src dbg hdr log logpipe* *.log.* *.log *.pkg.*'