{"id":1538,"date":"2014-11-28T16:22:01","date_gmt":"2014-11-28T16:22:01","guid":{"rendered":"http:\/\/41j.com\/blog\/?p=1538"},"modified":"2014-11-28T16:22:01","modified_gmt":"2014-11-28T16:22:01","slug":"adding-new-program-alternatives-manually","status":"publish","type":"post","link":"https:\/\/41j.com\/blog\/2014\/11\/adding-new-program-alternatives-manually\/","title":{"rendered":"Adding a new program to alternatives manually"},"content":{"rendered":"<p>I wanted to add the terminal st as an alternative for x-terminal-emulator. This makes it easier to use with the distribution version of dwm on Debian Jessie. The following command adds st as an alternative:<\/p>\n<pre>\r\nsudo update-alternatives --install \/usr\/bin\/x-terminal-emulator x-terminal-emulator \/usr\/local\/bin\/st 1\r\n<\/pre>\n<p>And you can then select it as usual with:<\/p>\n<pre>\r\nsudo update-alternatives --config x-terminal-emulator\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I wanted to add the terminal st as an alternative for x-terminal-emulator. This makes it easier to use with the distribution version of dwm on Debian Jessie. The following command adds st as an alternative: sudo update-alternatives &#8211;install \/usr\/bin\/x-terminal-emulator x-terminal-emulator \/usr\/local\/bin\/st 1 And you can then select it as usual with: sudo update-alternatives &#8211;config x-terminal-emulator<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[1],"tags":[],"class_list":["post-1538","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1RRoU-oO","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/1538","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/comments?post=1538"}],"version-history":[{"count":1,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/1538\/revisions"}],"predecessor-version":[{"id":1539,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/posts\/1538\/revisions\/1539"}],"wp:attachment":[{"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/media?parent=1538"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/categories?post=1538"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/41j.com\/blog\/wp-json\/wp\/v2\/tags?post=1538"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}