Re-organise to use a bare repo

Re-organise to use a bare repo, e.g.
https://www.atlassian.com/git/tutorials/dotfiles.
This commit is contained in:
Oliver Davies 2021-06-10 10:10:59 +01:00
parent e00d9b2e96
commit d1da7c6e15
59 changed files with 19 additions and 68 deletions

32
.zsh/configs/aliases.zsh Normal file
View file

@ -0,0 +1,32 @@
alias c="clear"
alias l="ls -lah"
# Open the current directory in Finder.
alias o="open ."
alias hosts="sudo vim /etc/hosts"
alias sshconfig='vim ~/.ssh/config'
# Pretty print the path.
alias path='echo $PATH | tr -s ":" "\n"'
# Open the current directory in PhpStorm.
# Open the current directory in Sublime Text.
alias sublime='open -a /Applications/Sublime\ Text.app "`pwd`"'
# Allow for pasting lines of code that start with a dollar sign.
alias \$=''
# Re-implement pbcopy and pbpaste from macOS.
alias pbcopy="xclip -selection clipboard"
alias pbpaste="xclip -selection clipboard -o"
# Include custom aliases
if [[ -f ~/.aliases.local ]]; then
source ~/.aliases.local
fi
# Open directory aliases
if [[ -f $(pwd)/.aliases ]]; then
source $(pwd)/.aliases
fi