{"id":1574,"date":"2016-07-23T12:11:00","date_gmt":"2016-07-23T17:11:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/instalar-zsh-en-deepin\/"},"modified":"2016-07-23T12:11:00","modified_gmt":"2016-07-23T17:11:00","slug":"instalar-zsh-en-deepin","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/instalar-zsh-en-deepin\/","title":{"rendered":"Instalar ZSH en Deepin"},"content":{"rendered":"<div dir=\"ltr\" style=\"text-align: left;\">\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/3.bp.blogspot.com\/-g8Bn-bJS-qs\/V5Oic7O0PSI\/AAAAAAAADD4\/IliqD8XXVBAFrhoksTbNAGfvhPK7poLFQCLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-07-23%2B11-57-48.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"358\" src=\"https:\/\/3.bp.blogspot.com\/-g8Bn-bJS-qs\/V5Oic7O0PSI\/AAAAAAAADD4\/IliqD8XXVBAFrhoksTbNAGfvhPK7poLFQCLcB\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-07-23%2B11-57-48.png\" width=\"640\" \/><\/a><\/div>\n<p><\/p>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Como ya he mencionado antes, SHZ le da un potencial a la terminal, ya que acompleta los comandos incluso aunque est\u00e9n en may\u00fasculas y se haya escrito en min\u00fasculas, o instala comandos que no tengas instalados y los hayas utilizado.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">A parte de eso, le da un toque especial con los colores utilizados.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">La primera imagen, es la terminal de Deepin por default, ya con ZSH instalado se obtiene lo siguiente:<\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"https:\/\/1.bp.blogspot.com\/-5jxLzkZB0uo\/V5OjBxaV_sI\/AAAAAAAADD8\/2y57IohjTLICT45zmrAe_QYPN9Aw97LpACLcB\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2016-07-23%2B11-56-28.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" height=\"358\" src=\"https:\/\/1.bp.blogspot.com\/-5jxLzkZB0uo\/V5OjBxaV_sI\/AAAAAAAADD8\/2y57IohjTLICT45zmrAe_QYPN9Aw97LpACLcB\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2016-07-23%2B11-56-28.png\" width=\"640\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Con un poco m\u00e1s personalizaci\u00f3n se puede cambiar de color, informaci\u00f3n a mostrar etc.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<h2 style=\"text-align: justify;\"><span style=\"font-size: large;\">Instalaci\u00f3n:<\/span><\/h2>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Abrir una terminal y escribir lo siguiente:<\/span><\/div>\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: whitesmoke; font-family: 'Droid Sans Mono', Consolas, monospace; font-size: 13px; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\">sudo apt-get install zsh git<\/pre>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Una vez instalado, se configuran los archivos:<\/span><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\"><span style=\"font-size: large;\">1)<\/span><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\">\n<pre style=\"background-attachment: initial; background-clip: initial; background-color: black; background-image: initial; background-origin: initial; background-position: 0% 0%; background-repeat: no-repeat; background-size: initial; border-image-outset: initial; border-image-repeat: initial; border-image-slice: initial; border-image-source: initial; border-image-width: initial; border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: whitesmoke; font-family: 'Droid Sans Mono', Consolas, monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-align: start; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\">git clone git:\/\/github.com\/robbyrussell\/oh-my-zsh.git ~\/.oh-my-zsh<\/pre>\n<p><span style=\"font-size: large;\">2)<\/span><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; font-size: 12.8px; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\">\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: whitesmoke; font-family: 'Droid Sans Mono', Consolas, monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-align: start; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\">cp ~\/.oh-my-zsh\/templates\/zshrc.zsh-template ~\/.zshrc<\/pre>\n<\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\"><span style=\"font-size: large;\">3)<\/span><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; font-size: 12.8px; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\">\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: whitesmoke; font-family: 'Droid Sans Mono', Consolas, monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-align: start; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\">cp ~\/.zshrc ~\/.zshrc.orig<\/pre>\n<p><span style=\"font-size: 12.8px;\"><\/span><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\"><span style=\"font-size: large;\">4) cambiar la shell actual a la shell zsh<\/span><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; font-size: 12.8px; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\">\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: whitesmoke; font-family: 'Droid Sans Mono', Consolas, monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-align: start; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\">chsh -s `which zsh`<\/pre>\n<\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; font-size: 12.8px; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\"><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; font-size: 12.8px; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\"><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\"><span style=\"font-size: large;\">Si se quiere regresar shell anterior basta con hacer lo siguiente<\/span><\/div>\n<div style=\"background-color: white; border: 0px; color: #262626; font-family: 'Carrois Gothic', sans-serif; font-size: 12.8px; line-height: 24px; margin: 0px; outline: 0px; padding: 0px; text-align: justify; vertical-align: baseline;\">\n<pre style=\"background: 0% 0% no-repeat rgb(0, 0, 0); border-radius: 3px; border: 1px solid rgb(0, 0, 0); color: whitesmoke; font-family: 'Droid Sans Mono', Consolas, monospace; font-size: 13px; font-style: inherit; font-weight: inherit; line-height: 20px; margin: 8px 15px; max-width: 100%; opacity: 0.85; outline: 0px; overflow: auto; padding: 9.5px; text-align: start; text-shadow: none; vertical-align: baseline; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\">chsh -s `which bash`<\/pre>\n<\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\"><br \/><\/span><span style=\"font-size: large;\"><span style=\"text-align: left;\">Cerrar sesi\u00f3n y volver a iniciar para aplicar cambios.<\/span><\/span><br \/><span style=\"font-size: large;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: x-large;\">Instalar la tipograf\u00eda que se utiliza en algunos temas:<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-size: large;\">Descargar el siguiente <\/span><b><span style=\"font-size: x-large;\"><a href=\"https:\/\/mega.nz\/#!jMRWTSLI!AKKm0ZGxxmd8U1hOroecw0NGa-kFQk806rJTDZb5NeM\" target=\"_blank\">archivo<\/a><\/span><\/b><span style=\"font-size: large;\">, descomprimirlo y darle doble clic sobre la fuente que dice&nbsp;<\/span><span style=\"text-align: left;\"><span style=\"font-size: large;\">PowerlineSymbols.otf, abrir\u00e1 una ventana similar, darle clic en install.<\/span><\/span><br \/><span style=\"text-align: left;\"><span style=\"font-size: large;\"><br \/><\/span><\/span><\/div>\n<div style=\"text-align: justify;\"><img decoding=\"async\" src=\"https:\/\/1.bp.blogspot.com\/-fyeb5OqQqgc\/VRl6yKscZcI\/AAAAAAAAAp8\/XEguVrGWwSw\/s640\/Captura%2Bde%2Bpantalla%2Bde%2B2015-03-30%2B10%3A32%3A22.png\" \/><\/div>\n<div style=\"text-align: justify;\"><\/div>\n<h2 style=\"text-align: justify;\">Cambiar de tema zsh<\/h2>\n<div style=\"text-align: left;\"><span style=\"font-size: large;\">Para cambiar de tema, abrir el archivo .zhrc que est\u00e1 en la carpeta personal, y reemplazar el nombre que est\u00e9&nbsp;<\/span><span style=\"text-align: left;\"><span style=\"font-size: large;\">ZSH_THEME=\u00bbagnoster\u00bb por el que se desee. Los nombres de los temas est\u00e1n en la carpeta&nbsp;<\/span><\/span><span style=\"text-align: left;\"><span style=\"font-size: large;\">.oh-my-zsh\/themes, dicha carpeta est\u00e1 en la carpeta personal.<\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"text-align: left;\"><span style=\"font-size: large;\"><br \/><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"font-size: large;\">Reiniciar la terminal para visualizar los cambios.<\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"text-align: left;\"><span style=\"font-size: large;\"><br \/><\/span><\/span><\/div>\n<div style=\"text-align: left;\"><span style=\"text-align: left;\"><span style=\"font-size: large;\">Y eso ser\u00eda todo.&nbsp;<\/span><\/span><\/div>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Como ya he mencionado antes, SHZ le da un potencial a la terminal, ya que acompleta los comandos incluso aunque est\u00e9n en may\u00fasculas y se haya escrito en min\u00fasculas, o instala comandos que no tengas instalados y los hayas utilizado. A parte de eso, le da un toque especial con los colores utilizados. La primera [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[381,488,479,219],"tags":[],"class_list":["post-1574","post","type-post","status-publish","format-standard","hentry","category-deepin","category-instalar-zsh-en-deepin","category-install-zsh-on-deepin","category-zsh"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1574"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1574\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}