aliases for some recurrent commands

This commit is contained in:
MorganGeek 2020-07-23 09:20:17 +02:00
parent d5cdbbb7af
commit 1957058cf2
4 changed files with 10 additions and 1 deletions

View File

@ -14,7 +14,8 @@ alias ctrl-c='pbcopy'
alias s=ls
alias sl=ll
alias ls='lsd'
alias lsg='ll | grip' # show me files matching "ls grep"
alias lsg='ll | grip' # show me files matching "ls grep"
alias ltr='ls -latr'
alias lh='ls -alt | head' # see the last modified files
alias tree='ls --almost-all --tree -I .git'
alias x='extract'

View File

@ -1,5 +1,6 @@
#!/usr/bin/env bash
alias commit='gc'
alias gpa='git add -p .'
alias gcls='git clone --depth 1 --recurse-submodules'
alias gpar='gitpushallremote'
alias gpcr='gitpushcurrentremote'

View File

@ -7,6 +7,11 @@ alias bash="/usr/local/bin/bash"
#alias date="gdate"
alias away='moro break 10 && coffee'
alias afk='away'
# Protect the / directory - via https://github.com/JanEbbing/mytoolbox/blob/5440831fbd0d1575e595d931d4d35be187cf736e/.bash_aliases
alias chown='gchown --preserve-root'
alias chmod='gchmod --preserve-root'
alias chgrp='gchgrp --preserve-root'
alias current_year='`echo date +"%Y"`'
alias headers='curl -I --compress' # Find out if remote server supports gzip / mod_deflate or not #
alias https='http --default-scheme=https' # useful alias stealed from a colleague. http is provided by httpie

View File

@ -137,6 +137,8 @@ export GIT_PERSONAL_USER=""
export GIT_PRO_EMAIL=""
export GIT_PRO_USER=""
source "$HOME/Code/dotfiles/dot_aliases/misc.sh"
if test -f "$HOME/.scripts/secrets.sh"; then
chmod +x "$HOME/.scripts/secrets.sh"
source "$HOME/.scripts/secrets.sh"