feat(fish): add fish-shell

This commit is contained in:
2022-05-29 18:34:28 +08:00
parent 96f291e4d8
commit 27e1771b99
6 changed files with 79 additions and 0 deletions

21
fish/config-osx.fish Normal file
View File

@@ -0,0 +1,21 @@
if type -q exa
alias ls "exa -g --icons --classify"
alias lsa "ls -a"
alias ll "exa -l -g --icons --classify"
alias lla "ll -a"
end
if type -q ghq
alias ghqcd="cd \$(ghq list --full-path | fzf)"
end
if type -q docker
# PHP in container
alias dcomposer="docker run --rm --interactive --tty --volume \$PWD:/app --volume \$HOME/.composer:/tmp composer:latest composer"
alias dphp="docker run --rm --interactive --tty --volume \$PWD:/app --volume /Users:/Users composer:latest php"
alias dphp8="docker run --rm --interactive --tty --volume \$PWD:/app composer:latest php"
alias dphp7="docker run --rm --interactive --tty --volume \$PWD:/app --workdir /app php:7.4-cli php"
alias dlaravel="docker run --rm --interactive --tty --volume \$PWD:/app --volume \$HOME/.composer:/tmp composer:latest /tmp/vendor/bin/laravel"
end