~wrm/dotfiles

ref: 123b158daa220a00fac6f19c375ef16b91a168cc dotfiles/.config/shell/aliasrc -rw-r--r-- 848 bytes
123b158d — +wrm misc: Apply numerous minor changes 3 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/bin/sh

alias vim="nvim"
alias vimdiff="nvim -d"
alias ls="ls -h --color=auto"
alias l="ls -l"
alias la="ls -la"
#alias locate="plocate"

remember () {
	DIR="$( realpath -s $1 )"
}
alias r="remember"
alias c='cd "$DIR"'

# fff - remember path on exit, sometimes we want to cd to it
f () {
	fff "$@"
	remember "$(cat "${XDG_CACHE_HOME}/fff/.fff_d")"
}

alias cfg="vim ${XDG_CONFIG_HOME}"
alias cfp="vim ${XDG_CONFIG_HOME}/shell/profile"
alias cfs="vim ${XDG_CONFIG_HOME}/shell/shellrc"
alias cfa="vim ${XDG_CONFIG_HOME}/shell/aliasrc"
alias cfx="vim ${XDG_CONFIG_HOME}/x11"
alias cfv="vim ${XDG_CONFIG_HOME}/nvim/init.vim"
alias cft="vim ${XDG_CONFIG_HOME}/tmux/tmux.conf"

alias startx="startx ${XDG_CONFIG_HOME}/x11/xinitrc"

alias yt="youtube-dl --add-metadata -i"
alias yta="yt -x -f bestaudio/best"

. "${XDG_CONFIG_HOME}/shell/git-aliases"