(refactor): Cleaned up dotfils folder
Moved everything from a nested folder to just the top level of the repo
This commit is contained in:
parent
eb38291092
commit
091e5808a7
25 changed files with 9 additions and 1605 deletions
63
aliases.zsh
Executable file
63
aliases.zsh
Executable file
|
|
@ -0,0 +1,63 @@
|
|||
# A collection of useful aliases to make terminal life bliss
|
||||
# Unix
|
||||
alias ll="ls -la"
|
||||
alias ln="ln -v"
|
||||
alias mkdir="mkdir -p"
|
||||
alias e="$EDITOR"
|
||||
alias v="$VISUAL"
|
||||
alias tmux='tmux -u'
|
||||
|
||||
# top
|
||||
alias cpu='top -o CPU'
|
||||
alias mem='top -o MEM'
|
||||
|
||||
# Get your current public IP
|
||||
alias ip="curl icanhazip.com"
|
||||
alias ip6="wget -q0- -ti -T2 ipv6.icanhazip.com"
|
||||
|
||||
# Git
|
||||
alias ga="git add"
|
||||
alias gaa="git add ."
|
||||
alias gc="git commit -m "
|
||||
alias gp='git push -u origin "$(git symbolic-ref --short HEAD)"'
|
||||
alias gs="git status"
|
||||
alias nah="git reset --hard; git clean -df;"
|
||||
alias grr="git remote remove origin"
|
||||
alias gra="git remote add origin "
|
||||
alias clonerepo="git fetch --all && git pull --all && git clone-branches"
|
||||
|
||||
# Python
|
||||
alias py='python3'
|
||||
alias py3='python3'
|
||||
alias python='python3'
|
||||
alias pip='pip3'
|
||||
|
||||
# Bundler
|
||||
alias b="bundle"
|
||||
alias bi="bundle install"
|
||||
alias be="bundle exec"
|
||||
alias bu="bundle update"
|
||||
|
||||
# Rails
|
||||
alias migrate="rake db:migrate db:rollback && rake db:migrate"
|
||||
alias s="rspec"
|
||||
alias rk="rake"
|
||||
alias rc="rails c"
|
||||
alias rs="rails s"
|
||||
alias gi="gem install"
|
||||
|
||||
# Pretty print the path
|
||||
alias path='echo $PATH | tr -s ":" "\n"'
|
||||
|
||||
# Configuration Reloads
|
||||
alias tmuxreload='source ~/.tmux.conf'
|
||||
alias zshreload='source ~/.zshrc'
|
||||
|
||||
# nvim
|
||||
alias vim=nvim
|
||||
alias vi=nvim
|
||||
|
||||
# Configuration
|
||||
alias vimrc='nvim ~/.vimrc'
|
||||
alias ealias='nvim ~/dotfiles/aliases.zsh'
|
||||
alias zshrc='nvim ~/.zshrc'
|
||||
Loading…
Add table
Add a link
Reference in a new issue