{"id":140747,"date":"2018-01-31T11:00:52","date_gmt":"2018-01-31T16:00:52","guid":{"rendered":"https:\/\/spin.aa8q45el-liquidwebsites.com\/?p=140747"},"modified":"2018-03-28T13:21:11","modified_gmt":"2018-03-28T17:21:11","slug":"fish-shell-functions","status":"publish","type":"post","link":"https:\/\/spin.atomicobject.com\/fish-shell-functions\/","title":{"rendered":"Centralize Your Command Line with fish shell Functions"},"content":{"rendered":"<p>Developers use a lot of customizable tools, and it&#8217;s easy to reason through most of them. While text editors and IDEs come with config files and community standards for customizations, Unix-like shells can feel barren in comparison. However, <a href=\"https:\/\/fishshell.com\/\" target=\"_blank\" rel=\"noopener\">fish shell<\/a> acts as a highly configurable alternative to other shells. <!--more--><\/p>\n<p>(If you&#8217;re interested in switching to fish shell, my colleague John can show you <a href=\"https:\/fish-shell-overview\/\">how to set it up and use its coolest features<\/a>.)<\/p>\n<p>The unique part of the fish shell is the way it uses functions to decrease the reliance on monolithic config files. The separation of components into smaller, focused routines is a job that developers do every day.<\/p>\n<h2>Functions<\/h2>\n<blockquote><p>A fish function is a list of commands, which may optionally take arguments.<\/p><\/blockquote>\n<p>Functions are by far the best reason to try out the fish shell. If you&#8217;re like me, you have a <code>bin<\/code> directory that acts as a catch-all in your <code>$HOME<\/code> directory. Mine was cluttered with scripts that weren&#8217;t really binaries. I struggled to remember whether a command was aliased in my <code>.profile<\/code> or sitting in <code>bin<\/code>.<\/p>\n<p>The fish shell does away with both of these problems. For the first issue, all functions live in your home directory under <code>~\/.config\/fish\/functions<\/code>. They&#8217;re automatically loaded to the list of functions you can access from the fish shell, so there&#8217;s no need to add the directory to the path yourself.<\/p>\n<p>Aliases are available in fish, but they&#8217;re not recommended for creating functions. The functions directory adds a central location to list wrapped commands. While the <code>alias<\/code> command still exists in fish, it&#8217;s just as easy to create a function file as it is to alias it in the fish config.<\/p>\n<p>An example of a quick override is the <code>fish_greeting<\/code>. This is presented whenever you start a new shell session. One easy way to override or suppress it is by adding a <code>fish_greeting.fish<\/code> file to your functions directory. Anything inside the fish_greeting function will now be shown in a new session.<\/p>\n<p>With the greeting modified, it would be a great time to modify fish&#8217;s prompt too. But there&#8217;s one caveat coming from Z Shell or Bash. There is no PS1 variable.<\/p>\n<h2>Prompt<\/h2>\n<p><figure id=\"attachment_140763\" aria-describedby=\"caption-attachment-140763\" style=\"width: 590px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-140763 size-medium\" src=\"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/20180101221354\/fish_shell_then-590x205.png\" alt=\"Fish Shell with Default Prompt\" width=\"590\" height=\"205\" srcset=\"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_shell_then-590x205.png 590w, https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_shell_then-150x52.png 150w, https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_shell_then-768x266.png 768w, https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_shell_then-1024x355.png 1024w, https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_shell_then-600x208.png 600w, https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_shell_then.png 1142w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><figcaption id=\"caption-attachment-140763\" class=\"wp-caption-text\">fish shell with default prompt<\/figcaption><\/figure><\/p>\n<p>You may notice that fish doesn&#8217;t provide a way to customize the command prompt via the PS1 variable. Instead, it executes the <code>fish_prompt<\/code> function, which can be used to print a prompt. While the prompt defaults to showing the hostname and the current working directory, it can be changed to anything. A simple solution is to print the current working directory followed by a greater-than sign:<\/p>\n<pre><code class=\"language-fish\">function fish_prompt\r\n    printf ' '(prompt_pwd)'&gt; '\r\nend<\/code><\/pre>\n<p>There are a few fish-specific features to explain in the code. The first is that the custom fish_prompt will override the default fish_prompt, just like fish_greeting did. Next, the parentheses around prompt_pwd represent command substitution. Finally, the result of prompt_pwd is a string, so fish can interpolate it into the first parameter of printf.<\/p>\n<p><figure id=\"attachment_140764\" aria-describedby=\"caption-attachment-140764\" style=\"width: 590px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-140764 size-medium\" src=\"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/20180101221425\/fish_shell_now-590x205.png\" alt=\"Fish Shell with Customized Prompt\" width=\"590\" height=\"205\" srcset=\"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_shell_now-590x205.png 590w, https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_shell_now-150x52.png 150w, https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_shell_now-768x266.png 768w, https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_shell_now-1024x355.png 1024w, https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_shell_now-600x208.png 600w, https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_shell_now.png 1142w\" sizes=\"auto, (max-width: 590px) 100vw, 590px\" \/><figcaption id=\"caption-attachment-140764\" class=\"wp-caption-text\">fish shell with customized prompt<\/figcaption><\/figure><\/p>\n<p>These are just a few of the ways you can centralize your command-line workflow with fish. Functions replace simple shell scripts, overrides are straightforward, and everything can be found reasonably under the fish config directory. It&#8217;s a great way to streamline shell modifications.<\/p>\n<p>For further reading, try out the <a href=\"https:\/\/fishshell.com\/docs\/current\/tutorial.html#tut_learning_Fish\">official fish documentation<\/a>. There&#8217;s an impressive amount of information for current fish users and those looking to dive into a new experience.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Developers use a lot of customizable tools, and it&#8217;s easy to reason through most of them. While text editors and IDEs come with config files and community standards for customizations, Unix-like shells can feel barren in comparison. However, fish shell acts as a highly configurable alternative to other shells.<\/p>\n","protected":false},"author":543,"featured_media":140772,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1731],"tags":[736,1006,2457],"series":[],"class_list":["post-140747","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-developer-tools","tag-terminal","tag-bash","tag-fish"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>fish shell Functions \u2013 Centralize Your Command-Line<\/title>\n<meta name=\"description\" content=\"fish shell uses functions to decrease the reliance on a monolithic config file. It&#039;s this approach to functions that makes fish unique.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/spin.atomicobject.com\/fish-shell-functions\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"fish shell Functions \u2013 Centralize Your Command-Line\" \/>\n<meta property=\"og:description\" content=\"fish shell uses functions to decrease the reliance on a monolithic config file. It&#039;s this approach to functions that makes fish unique.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/spin.atomicobject.com\/fish-shell-functions\/\" \/>\n<meta property=\"og:site_name\" content=\"Atomic Spin\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/atomicobject\" \/>\n<meta property=\"article:published_time\" content=\"2018-01-31T16:00:52+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2018-03-28T17:21:11+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_bold.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1600\" \/>\n\t<meta property=\"og:image:height\" content=\"1300\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Josiah Campbell\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@atomicobject\" \/>\n<meta name=\"twitter:site\" content=\"@atomicobject\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Josiah Campbell\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/fish-shell-functions\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/fish-shell-functions\\\/\"},\"author\":{\"name\":\"Josiah Campbell\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/#\\\/schema\\\/person\\\/a80a0d9beb1df3a908f36da909db4c1b\"},\"headline\":\"Centralize Your Command Line with fish shell Functions\",\"datePublished\":\"2018-01-31T16:00:52+00:00\",\"dateModified\":\"2018-03-28T17:21:11+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/fish-shell-functions\\\/\"},\"wordCount\":594,\"publisher\":{\"@id\":\"https:\\\/\\\/atomicobject.com\\\/\"},\"image\":{\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/fish-shell-functions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/spin.atomicobject.com\\\/wp-content\\\/uploads\\\/fish_bold.png\",\"keywords\":[\"terminal\",\"bash\",\"fish\"],\"articleSection\":[\"Developer Tools\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/fish-shell-functions\\\/\",\"url\":\"https:\\\/\\\/spin.atomicobject.com\\\/fish-shell-functions\\\/\",\"name\":\"fish shell Functions \u2013 Centralize Your Command-Line\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/fish-shell-functions\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/fish-shell-functions\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/spin.atomicobject.com\\\/wp-content\\\/uploads\\\/fish_bold.png\",\"datePublished\":\"2018-01-31T16:00:52+00:00\",\"dateModified\":\"2018-03-28T17:21:11+00:00\",\"description\":\"fish shell uses functions to decrease the reliance on a monolithic config file. It's this approach to functions that makes fish unique.\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/spin.atomicobject.com\\\/fish-shell-functions\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/fish-shell-functions\\\/#primaryimage\",\"url\":\"https:\\\/\\\/spin.atomicobject.com\\\/wp-content\\\/uploads\\\/fish_bold.png\",\"contentUrl\":\"https:\\\/\\\/spin.atomicobject.com\\\/wp-content\\\/uploads\\\/fish_bold.png\",\"width\":1600,\"height\":1300},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/#website\",\"url\":\"https:\\\/\\\/spin.atomicobject.com\\\/\",\"name\":\"Atomic Spin\",\"description\":\"Atomic Object\u2019s blog on everything we find fascinating.\",\"publisher\":{\"@id\":\"https:\\\/\\\/atomicobject.com\\\/\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/spin.atomicobject.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/#organization\",\"name\":\"Atomic Object\",\"url\":\"https:\\\/\\\/spin.atomicobject.com\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/spin.atomicobject.com\\\/wp-content\\\/uploads\\\/AO-Logo-Emblem-Color.png\",\"contentUrl\":\"https:\\\/\\\/spin.atomicobject.com\\\/wp-content\\\/uploads\\\/AO-Logo-Emblem-Color.png\",\"width\":258,\"height\":244,\"caption\":\"Atomic Object\"},\"image\":{\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/atomicobject\",\"https:\\\/\\\/x.com\\\/atomicobject\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/spin.atomicobject.com\\\/#\\\/schema\\\/person\\\/a80a0d9beb1df3a908f36da909db4c1b\",\"name\":\"Josiah Campbell\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a79643a96a95fffb55362e09dc110852d72a7e3f5a0b191d5821a28f9b6723d?s=96&d=blank&r=pg\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a79643a96a95fffb55362e09dc110852d72a7e3f5a0b191d5821a28f9b6723d?s=96&d=blank&r=pg\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0a79643a96a95fffb55362e09dc110852d72a7e3f5a0b191d5821a28f9b6723d?s=96&d=blank&r=pg\",\"caption\":\"Josiah Campbell\"},\"url\":\"https:\\\/\\\/spin.atomicobject.com\\\/author\\\/josiah-campbell\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"fish shell Functions \u2013 Centralize Your Command-Line","description":"fish shell uses functions to decrease the reliance on a monolithic config file. It's this approach to functions that makes fish unique.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/spin.atomicobject.com\/fish-shell-functions\/","og_locale":"en_US","og_type":"article","og_title":"fish shell Functions \u2013 Centralize Your Command-Line","og_description":"fish shell uses functions to decrease the reliance on a monolithic config file. It's this approach to functions that makes fish unique.","og_url":"https:\/\/spin.atomicobject.com\/fish-shell-functions\/","og_site_name":"Atomic Spin","article_publisher":"https:\/\/www.facebook.com\/atomicobject","article_published_time":"2018-01-31T16:00:52+00:00","article_modified_time":"2018-03-28T17:21:11+00:00","og_image":[{"width":1600,"height":1300,"url":"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_bold.png","type":"image\/png"}],"author":"Josiah Campbell","twitter_card":"summary_large_image","twitter_creator":"@atomicobject","twitter_site":"@atomicobject","twitter_misc":{"Written by":"Josiah Campbell","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/spin.atomicobject.com\/fish-shell-functions\/#article","isPartOf":{"@id":"https:\/\/spin.atomicobject.com\/fish-shell-functions\/"},"author":{"name":"Josiah Campbell","@id":"https:\/\/spin.atomicobject.com\/#\/schema\/person\/a80a0d9beb1df3a908f36da909db4c1b"},"headline":"Centralize Your Command Line with fish shell Functions","datePublished":"2018-01-31T16:00:52+00:00","dateModified":"2018-03-28T17:21:11+00:00","mainEntityOfPage":{"@id":"https:\/\/spin.atomicobject.com\/fish-shell-functions\/"},"wordCount":594,"publisher":{"@id":"https:\/\/atomicobject.com\/"},"image":{"@id":"https:\/\/spin.atomicobject.com\/fish-shell-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_bold.png","keywords":["terminal","bash","fish"],"articleSection":["Developer Tools"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/spin.atomicobject.com\/fish-shell-functions\/","url":"https:\/\/spin.atomicobject.com\/fish-shell-functions\/","name":"fish shell Functions \u2013 Centralize Your Command-Line","isPartOf":{"@id":"https:\/\/spin.atomicobject.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/spin.atomicobject.com\/fish-shell-functions\/#primaryimage"},"image":{"@id":"https:\/\/spin.atomicobject.com\/fish-shell-functions\/#primaryimage"},"thumbnailUrl":"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_bold.png","datePublished":"2018-01-31T16:00:52+00:00","dateModified":"2018-03-28T17:21:11+00:00","description":"fish shell uses functions to decrease the reliance on a monolithic config file. It's this approach to functions that makes fish unique.","inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/spin.atomicobject.com\/fish-shell-functions\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/spin.atomicobject.com\/fish-shell-functions\/#primaryimage","url":"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_bold.png","contentUrl":"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/fish_bold.png","width":1600,"height":1300},{"@type":"WebSite","@id":"https:\/\/spin.atomicobject.com\/#website","url":"https:\/\/spin.atomicobject.com\/","name":"Atomic Spin","description":"Atomic Object\u2019s blog on everything we find fascinating.","publisher":{"@id":"https:\/\/atomicobject.com\/"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/spin.atomicobject.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/spin.atomicobject.com\/#organization","name":"Atomic Object","url":"https:\/\/spin.atomicobject.com\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/spin.atomicobject.com\/#\/schema\/logo\/image\/","url":"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/AO-Logo-Emblem-Color.png","contentUrl":"https:\/\/spin.atomicobject.com\/wp-content\/uploads\/AO-Logo-Emblem-Color.png","width":258,"height":244,"caption":"Atomic Object"},"image":{"@id":"https:\/\/spin.atomicobject.com\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/atomicobject","https:\/\/x.com\/atomicobject"]},{"@type":"Person","@id":"https:\/\/spin.atomicobject.com\/#\/schema\/person\/a80a0d9beb1df3a908f36da909db4c1b","name":"Josiah Campbell","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0a79643a96a95fffb55362e09dc110852d72a7e3f5a0b191d5821a28f9b6723d?s=96&d=blank&r=pg","url":"https:\/\/secure.gravatar.com\/avatar\/0a79643a96a95fffb55362e09dc110852d72a7e3f5a0b191d5821a28f9b6723d?s=96&d=blank&r=pg","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0a79643a96a95fffb55362e09dc110852d72a7e3f5a0b191d5821a28f9b6723d?s=96&d=blank&r=pg","caption":"Josiah Campbell"},"url":"https:\/\/spin.atomicobject.com\/author\/josiah-campbell\/"}]}},"_links":{"self":[{"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/posts\/140747","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/users\/543"}],"replies":[{"embeddable":true,"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/comments?post=140747"}],"version-history":[{"count":0,"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/posts\/140747\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/media\/140772"}],"wp:attachment":[{"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/media?parent=140747"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/categories?post=140747"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/tags?post=140747"},{"taxonomy":"series","embeddable":true,"href":"https:\/\/spin.atomicobject.com\/wp-json\/wp\/v2\/series?post=140747"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}