Put aliases.fish
, config.fish
to ~/.config/fish/
Put fish_prompt.fish
, fish_right_prompt.fish
, fish_title.fish
to ~/.config/fish/functions/
function circle | |
set -l project (git config --get remote.origin.url | sed "s/.*:\(.*\).git/\1/") | |
if test -n $project | |
set -l git_branch (git symbolic-ref HEAD 2> /dev/null | sed -e 's/refs\/heads\///') | |
set -l url "https://circleci.com/gh/$project/tree/$git_branch" | |
open $url | |
end | |
end |
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: bitwalker/alpine-elixir-phoenix:1.5.2 | |
- image: postgres:9.4.1 | |
environment: | |
POSTGRES_USER: ubuntu | |
working_directory: ~/repo | |
steps: |
defmodule Params do | |
@moduledoc """ | |
Provides Ecto.Schema for params parsing. | |
Example: | |
defmodule SearchParams do | |
use Params | |
params do | |
field(:text, :string) | |
field(:user_id, :integer) | |
field(:team_ids, {:array, :integer}) |