]>
git.rmz.io Git - dotfiles.git/blob - aliases
2 # this will allow aliasing any command after sudo
5 alias ls='ls --color=auto -F'
7 alias ll='ls -lh --color=auto -F'
8 alias la
='ls -lha --color=auto -F'
10 alias cp='cp -i --reflink=auto' # interactive + auto CoW
11 alias df
='df -h' # human-readable sizes
12 du
() { /usr
/bin
/du
-h ${@} | sort -h }
13 alias free
='free -m' # show sizes in MB
15 if [[ -n "${VIM_TERMINAL}" ]]; then
17 if (( ${#@} == 0 )); then
18 echo "Running in Vim's terminal, at least one file must be given!" >&2
22 if [[ "${f:0:1}" == "-" ]]; then
23 echo "Running in Vim's terminal, not accepting options!" >&2
28 # drop the file onto the running vim instance
29 # see :h terminal-communication
30 local abspath
=$(realpath $f)
31 echo -e "\e]51;[\"drop\", \"$abspath\"]\a"
37 #alias vp='vim PKGBUILD' # I have a script for that in ~/bin
38 alias vs
='vim SPLITBUILD'
42 # colours, I want more colours
43 [[ -x /usr
/bin
/colordiff
]] && alias diff='colordiff'
45 # colours and case insensitive search
51 # suspend screensaver when vlc is running
52 alias vlc
-suspend='xdg-screensaver suspend $(xprop -name vlc | grep "WM_CLIENT_LEADER(WINDOW)" | sed "s/.*\(0x\d*\)/\1/")'
55 alias :cp='rm -rf pkg src dbg hdr log logpipe* *.log.* *.log *.pkg.*'