]>
git.rmz.io Git - dotfiles.git/blob - aliases
f09cea4fd362215196152cf5cc46057d64e0caab
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 local abspath
=$(realpath $f)
28 echo -e "\e]51;[\"drop\", \"$abspath\"]\a"
34 #alias vp='vim PKGBUILD' # I have a script for that in ~/bin
35 alias vs
='vim SPLITBUILD'
39 # colours, I want more colours
40 [[ -x /usr
/bin
/colordiff
]] && alias diff='colordiff'
42 # colours and case insensitive search
48 # suspend screensaver when vlc is running
49 alias vlc
-suspend='xdg-screensaver suspend $(xprop -name vlc | grep "WM_CLIENT_LEADER(WINDOW)" | sed "s/.*\(0x\d*\)/\1/")'
52 alias :cp='rm -rf pkg src dbg hdr log logpipe* *.log.* *.log *.pkg.*'