-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.aliashrc
48 lines (43 loc) · 1.95 KB
/
.aliashrc
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
47
48
# trick to make sudo work with other aliases
alias sudo='sudo '
# this file contains aliases shared between bash and zsh
alias ll='ls -la'
# convert old mac style line endings to linux (not sure where else to save this...)
# cat mac.txt | tr "\r" "\n" > unix.txt
alias v='nvim' # can be overridden in .afteraliashrc on computers without neovim
alias vmin='nvim -u ~/.config/nvim/test.init.vim' # helpful when I want to run neovim with only a small config file
alias vnothing='nvim -u ~/.config/nvim/nothing.init.vim' # helpful when I want to run neovim with an empty config file
# helpful when I want to reproduce an issue in someone's plugin with the least config possible. debug.init.vim is not tracked by git so you it can be changed as needed.
alias vdebug='nvim -u ~/.config/nvim/debug.init.vim'
alias vimdebug='vim -u ~/.config/nvim/debug.init.vim'
###
# git stuff
###
alias g='git'
# alias for gitting latest versions in version sorted order
alias gtag='git for-each-ref --format="%(refname:short) %(taggerdate) %(subject) %(body)" refs/tags | sort -V'
alias gb='git branch'
alias ga='git add -A'
alias GD='git branch -D'
alias gd='git branch -d'
alias gcommit='git commit'
alias gpush='git push'
alias gpull='git pull'
alias gl='git log --decorate --stat --graph'
alias gdev='git checkout develop'
alias gmaster='git checkout master'
alias gash='git merge --squash'
alias gchop='git reset HEAD~' # off with your head!
alias check='git checkout'
# see changes between commits inclusive: git diff older_commit_id^...newer_commit_id
alias s='git status'
alias clone='git clone'
alias poser='composer'
alias c='cd'
alias c.='cd ..'
alias cvim="cd ~/.config/nvim"
alias cplug="cd ~/.config/nvim/plugged"
alias cproj="cd ~/.config/nvim/plugged/vim-project-tags"
alias chiv="cd ~/.config/nvim/plugged/vim-elhiv"
alias csearch="cd ~/.config/nvim/plugged/vim-project-search"
alias emacs="echo 'Oops, you tried to be stupid. Here, try this version of Vim that is totes digi' && read && nvim"