mirror of
https://git.sr.ht/~danbarber/dotfiles
synced 2025-03-04 08:59:18 +00:00
Add aliases
This commit is contained in:
parent
7efb4ae0f6
commit
b01398f0b7
45
dot_aliases
Normal file
45
dot_aliases
Normal file
@ -0,0 +1,45 @@
|
||||
# Unix
|
||||
alias ll="ls -al"
|
||||
alias ln="ln -v"
|
||||
alias mkdir="mkdir -p"
|
||||
alias e="$EDITOR"
|
||||
|
||||
# Bundler
|
||||
alias b="bundle"
|
||||
|
||||
# Rails
|
||||
alias migrate="bin/rails db:migrate db:rollback && bin/rails db:migrate db:test:prepare"
|
||||
alias s="rspec"
|
||||
|
||||
# Pretty print the path
|
||||
alias path='echo $PATH | tr -s ":" "\n"'
|
||||
|
||||
# Easier navigation: ..., ...., ....., and -
|
||||
alias ...="cd ../.."
|
||||
alias ....="cd ../../.."
|
||||
alias .....="cd ../../../.."
|
||||
alias -- -="cd -"
|
||||
|
||||
# git
|
||||
alias pullate="git pull"
|
||||
alias pushate="git push"
|
||||
|
||||
alias fetchate="git fetch"
|
||||
alias rebasate="git rebase"
|
||||
|
||||
alias ts="tig status"
|
||||
|
||||
# vim
|
||||
alias v="neovide --fork --no-tabs"
|
||||
|
||||
# Bundler
|
||||
alias be="bundle exec"
|
||||
|
||||
alias fuckit="git reset HEAD --hard"
|
||||
|
||||
alias httpserver="ruby -run -e httpd"
|
||||
|
||||
# Shell
|
||||
alias sanify="stty sane"
|
||||
|
||||
alias ip="curl canhasip.com"
|
||||
Loading…
Reference in New Issue
Block a user