~wrm/dotfiles

ref: a8650b492e11f0460d938d6411faa1a2fe7c7424 dotfiles/.config/shell/aliasrc -rw-r--r-- 1.1 KiB
a8650b49 — +wrm Add shell (dash) config 5 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"