~wrm/dotfiles

ref: da55858aa7f5fc285865bc4e27477708f9fcb458 dotfiles/.config/shell/aliasrc -rw-r--r-- 1.1 KiB
da55858a — +wrm nvim: Make file-specific tab and linewrap rules explicit 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
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh

alias vim="nvim"
alias vimdiff="nvim -d"
alias ls="ls -h --color=auto"
#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"

# TODO Auto gen these in profile for g, g~, etc.
alias g="git"
alias gs="git status"
alias ga="git add"
alias gc="git commit -S"
alias gm="git merge -S"
alias gd="git diff"
alias gr="git rebase"
alias gb="git branch"
alias gl="git log --show-signature"
alias gsl="git shortlog"
alias grl="git reflog"

alias g~="git --git-dir=$HOME/git/dotfiles/ --work-tree=$HOME"