{"id":1828,"date":"2014-09-06T23:02:00","date_gmt":"2014-09-07T04:02:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/instalar-zsh-en-kali-linux\/"},"modified":"2014-09-06T23:02:00","modified_gmt":"2014-09-07T04:02:00","slug":"instalar-zsh-en-kali-linux","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/instalar-zsh-en-kali-linux\/","title":{"rendered":"Instalar ZSH en kali Linux"},"content":{"rendered":"<h2 style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 32px; letter-spacing: -0.25px; line-height: 32px; margin: 10px 0px 20px; text-rendering: optimizelegibility;\">\u00bfQu\u00e9 es ZSH?<\/h2>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/4.bp.blogspot.com\/-PNBEdAoaHq8\/VAvZZ8g1cpI\/AAAAAAAAAP8\/-97VFfVnol4\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2014-09-06%2B23%3A03%3A29.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/4.bp.blogspot.com\/-PNBEdAoaHq8\/VAvZZ8g1cpI\/AAAAAAAAAP8\/-97VFfVnol4\/s1600\/Captura%2Bde%2Bpantalla%2Bde%2B2014-09-06%2B23%3A03%3A29.png\" height=\"265\" width=\"400\" \/><\/a><\/div>\n<div><\/div>\n<div style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 15px; line-height: 22px; padding-bottom: 15px; text-align: justify;\">Antes de hablar del plato principal debemos definir el contexto, ZSH es un terminal alternativo para sistemas operativos Unix que recopila funcionalidades de distintos terminales como Bash, ksh y tcsh.<\/div>\n<div style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 15px; line-height: 22px; padding-bottom: 15px; text-align: justify;\">Es quiz\u00e1s la l\u00ednea de comandos m\u00e1s flexible y poderosa que hay, ofreciendo numerosas ventajas sobre todo en cuanto escritura de&nbsp;<em>scripts<\/em>&nbsp;e interpretaci\u00f3n de comandos.<\/div>\n<div style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 15px; line-height: 22px; padding-bottom: 15px; text-align: justify;\">Algunas de las ventajas que ofrece ZSH:<\/div>\n<ul style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 15px; line-height: 22px; list-style-image: initial; list-style-position: initial; margin: 1.5em 0px 1.5em 40px; padding: 0px;\">\n<li style=\"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 20px;\">Terminaci\u00f3n autom\u00e1tica de comandos, directorios, opciones y argumentos.<\/li>\n<li style=\"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 20px;\">Edici\u00f3n de comandos de m\u00faltiples l\u00edneas.<\/li>\n<li style=\"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 20px;\">Edici\u00f3n de variables.<\/li>\n<li style=\"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 20px;\">Pila buffer de comandos.<\/li>\n<li style=\"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 20px;\">Mayor englobamiento de archivos.<\/li>\n<li style=\"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 20px;\">Mejor manejo de arreglos y variables.<\/li>\n<li style=\"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 20px;\">Correcci\u00f3n ortogr\u00e1fica.<\/li>\n<li style=\"-webkit-tap-highlight-color: rgba(0, 0, 0, 0); line-height: 20px;\">Altamente personalizable.<\/li>\n<\/ul>\n<h2 style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 32px; letter-spacing: -0.25px; line-height: 32px; margin: 10px 0px 20px; text-rendering: optimizelegibility;\">\u00bfY qu\u00e9 hay de oh-my-zsh?<\/h2>\n<div style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 15px; line-height: 22px; padding-bottom: 15px; text-align: justify;\">oh-my-zsh es un framework mantenido por la comunidad de c\u00f3digo abierto que permite manejar f\u00e1cilmente la configuraci\u00f3n del terminal ZSH, es altamente personalizable y un gran complemento para usuarios que trabajan constantemente en el terminal ofreci\u00e9ndoles un ambiente agradable a la vista, con muchas ayudas visuales, facilidad de ubicaci\u00f3n y optimizaci\u00f3n de tareas gracias al la gama de funcionalidades que ofrece la librer\u00eda de complementos.<\/div>\n<h2 style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 32px; letter-spacing: -0.25px; line-height: 32px; margin: 10px 0px 20px; text-rendering: optimizelegibility;\">\u00bfC\u00f3mo lo instalo?<\/h2>\n<h3 style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 26px; letter-spacing: -0.25px; line-height: 30px; margin: 10px 0px; text-rendering: optimizelegibility;\">Kali Linux:<\/h3>\n<div style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 15px; line-height: 22px; padding-bottom: 15px;\">Con un sencillo apt-get en el terminal:<\/div>\n<pre style=\"background-attachment: initial; background-clip: initial; background-color: #ffffd5; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-color: rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgb(64, 64, 64); border-style: solid; border-top-left-radius: 4px; border-top-right-radius: 4px; border-width: 1px 1px 1px 5px; color: #222222; font-size: 13px; line-height: 20px; margin-bottom: 10px; margin-top: 10px; padding: 1em; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"background-color: ghostwhite; color: black; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; white-space: pre;\">apt<\/span><span style=\"background-color: ghostwhite; color: rgb(0, 111, 224) !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; white-space: pre;\">-<\/span><span style=\"background-color: ghostwhite; color: teal !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; white-space: pre;\">get <\/span><span style=\"background-color: ghostwhite; color: teal !important; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; white-space: pre;\">install <\/span><span style=\"background-color: ghostwhite; color: black; font-family: inherit; font-size: inherit !important; font-weight: inherit !important; height: inherit; line-height: inherit !important; white-space: pre;\">zsh<\/span><\/pre>\n<div style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 15px; line-height: 22px; padding-bottom: 15px; text-align: justify;\">Ya teniendo ZSH instalado, procedemos a instalar oh-my-zsh. Para esto tenemos 2 opciones, el m\u00e9todo autom\u00e1tico, y el m\u00e9todo manual.<\/div>\n<h3 style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 26px; letter-spacing: -0.25px; line-height: 30px; margin: 10px 0px; text-rendering: optimizelegibility;\">M\u00e9todo autom\u00e1tico<\/h3>\n<div style=\"padding-bottom: 15px;\"><span style=\"color: #555555; font-family: Lato, sans-serif;\"><span style=\"background-color: white; font-size: 15px; line-height: 22px;\">Puede hacerlo ejecutando en el terminal el siguiente comando&nbsp;<\/span><\/span><em style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 15px; line-height: 22px;\">curl<\/em><span style=\"color: #555555; font-family: Lato, sans-serif;\"><span style=\"background-color: white; font-size: 15px; line-height: 22px;\">:<\/span><\/span><\/div>\n<pre style=\"background-attachment: initial; background-clip: initial; background-color: #ffffd5; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-color: rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgb(64, 64, 64); border-style: solid; border-top-left-radius: 4px; border-top-right-radius: 4px; border-width: 1px 1px 1px 5px; color: #222222; font-size: 13px; line-height: 20px; margin-bottom: 10px; margin-top: 10px; padding: 1em; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: black; font-family: 'Times New Roman'; font-size: small; line-height: normal; white-space: normal;\">curl -L https:\/\/github.com\/robbyrussell\/oh-my-zsh\/raw\/master\/tools\/install.sh | sh<\/span><\/pre>\n<div style=\"padding-bottom: 15px;\"><span style=\"color: #555555; font-family: Lato, sans-serif;\"><span style=\"background-color: white; font-size: 15px; line-height: 22px;\">O sino por medio de&nbsp;<\/span><\/span><em style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 15px; line-height: 22px;\">wget<\/em><span style=\"color: #555555; font-family: Lato, sans-serif;\"><span style=\"background-color: white; font-size: 15px; line-height: 22px;\">&nbsp;(com\u00fan para usuario Linux):<\/span><\/span><\/div>\n<pre style=\"background-attachment: initial; background-clip: initial; background-color: #ffffd5; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-color: rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgb(64, 64, 64); border-style: solid; border-top-left-radius: 4px; border-top-right-radius: 4px; border-width: 1px 1px 1px 5px; color: #222222; font-size: 13px; line-height: 20px; margin-bottom: 10px; margin-top: 10px; padding: 1em; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: black; font-family: 'Times New Roman'; font-size: small; line-height: normal; white-space: normal;\">wget --no-check-certificate https:\/\/github.com\/robbyrussell\/oh-my-zsh\/raw\/master\/tools\/install.sh -O - | sh<\/span><\/pre>\n<div style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 15px; line-height: 22px; padding-bottom: 15px; text-align: justify;\">Este proceso buscar\u00e1 en Github la versi\u00f3n de oh-my-zsh m\u00e1s reciente y la instalar\u00e1 en el sistema.<\/div>\n<div style=\"padding-bottom: 15px; text-align: justify;\"><span style=\"color: #555555; font-family: Lato, sans-serif;\"><span style=\"background-color: white; font-size: 15px; line-height: 22px;\">Reiniciemos el terminal y veamos si el terminal zsh ha sido establecido como el predeterminado usando el siguiente comando:<\/span><\/span><\/div>\n<pre style=\"background-attachment: initial; background-clip: initial; background-color: #ffffd5; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-color: rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgb(64, 64, 64); border-style: solid; border-top-left-radius: 4px; border-top-right-radius: 4px; border-width: 1px 1px 1px 5px; color: #222222; font-size: 13px; line-height: 20px; margin-bottom: 10px; margin-top: 10px; padding: 1em; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: black; font-family: 'Times New Roman'; font-size: small; line-height: normal; white-space: normal;\">echo $SHELL<\/span><\/pre>\n<div style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 15px; line-height: 22px; padding-bottom: 15px; text-align: justify;\">De tener una salida como esta, podremos comprobar que efectivamente la instalaci\u00f3n de oh-my-zsh configur\u00f3 el terminal ZSH como predeterminado:<\/div>\n<pre style=\"background-attachment: initial; background-clip: initial; background-color: #ffffd5; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-color: rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgb(64, 64, 64); border-style: solid; border-top-left-radius: 4px; border-top-right-radius: 4px; border-width: 1px 1px 1px 5px; color: #222222; font-size: 13px; line-height: 20px; margin-bottom: 10px; margin-top: 10px; padding: 1em; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: black; font-family: 'Times New Roman'; font-size: small; line-height: normal; white-space: normal;\">\/bin\/zsh<\/span><\/pre>\n<div style=\"padding-bottom: 15px;\"><span style=\"color: #555555; font-family: Lato, sans-serif;\"><span style=\"background-color: white; font-size: 15px; line-height: 22px;\">De lo contrario utilizaremos el siguiente comando para manualmente definir el terminal ZSH como predeterminado:<\/span><\/span><\/div>\n<pre style=\"background-attachment: initial; background-clip: initial; background-color: #ffffd5; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-color: rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgb(64, 64, 64); border-style: solid; border-top-left-radius: 4px; border-top-right-radius: 4px; border-width: 1px 1px 1px 5px; color: #222222; font-size: 13px; line-height: 20px; margin-bottom: 10px; margin-top: 10px; padding: 1em; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: black; font-family: 'Times New Roman'; font-size: small; line-height: normal; white-space: normal;\">chsh -s \/bin\/zsh<\/span><\/pre>\n<div style=\"padding-bottom: 15px;\"><span style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 26px; letter-spacing: -0.25px; line-height: 30px;\">M\u00e9todo manual<\/span><\/div>\n<pre style=\"background-attachment: initial; background-clip: initial; background-color: #ffffd5; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-color: rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgb(64, 64, 64); border-style: solid; border-top-left-radius: 4px; border-top-right-radius: 4px; border-width: 1px 1px 1px 5px; color: #222222; font-size: 13px; line-height: 20px; margin-bottom: 10px; margin-top: 10px; padding: 1em; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: black; font-family: 'Times New Roman'; font-size: small; line-height: normal; white-space: normal;\">git clone git:\/\/github.com\/robbyrussell\/oh-my-zsh.git ~\/.oh-my-zsh<\/span><\/pre>\n<div style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 15px; line-height: 22px; padding-bottom: 15px;\">Posteriormente crearemos el archivo de configuraci\u00f3n de ZSH copiando la plantilla que trae oh-my-zsh:<\/div>\n<pre style=\"background-attachment: initial; background-clip: initial; background-color: #ffffd5; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-color: rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgb(64, 64, 64); border-style: solid; border-top-left-radius: 4px; border-top-right-radius: 4px; border-width: 1px 1px 1px 5px; color: #222222; font-size: 13px; line-height: 20px; margin-bottom: 10px; margin-top: 10px; padding: 1em; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: black; font-family: 'Times New Roman'; font-size: small; line-height: normal; white-space: normal;\">cp ~\/.oh-my-zsh\/templates\/zshrc.zsh-template ~\/.zshrc<\/span><\/pre>\n<div style=\"padding-bottom: 15px;\"><span style=\"color: #555555; font-family: Lato, sans-serif;\"><span style=\"background-color: white; font-size: 15px; line-height: 22px;\">Luego estableceremos el terminal ZSH como el predeterminado:<\/span><\/span><\/div>\n<pre style=\"background-attachment: initial; background-clip: initial; background-color: #ffffd5; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; border-bottom-left-radius: 4px; border-bottom-right-radius: 4px; border-color: rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgba(0, 0, 0, 0.14902) rgb(64, 64, 64); border-style: solid; border-top-left-radius: 4px; border-top-right-radius: 4px; border-width: 1px 1px 1px 5px; color: #222222; font-size: 13px; line-height: 20px; margin-bottom: 10px; margin-top: 10px; padding: 1em; white-space: pre-wrap; word-break: break-all; word-wrap: break-word;\"><span style=\"color: black; font-family: 'Times New Roman'; font-size: small; line-height: normal; white-space: normal;\">chsh -s \/bin\/zsh<\/span><\/pre>\n<div style=\"background-color: white; color: #555555; font-family: Lato, sans-serif; font-size: 15px; line-height: 22px; padding-bottom: 15px; text-align: justify;\">Por \u00faltimo reiniciamos el terminal y&nbsp;<em>voil\u00e0, si por alguna raz\u00f3n eso no funciona, entonces es necesario reiniciar la m\u00e1quia<\/em>.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u00bfQu\u00e9 es ZSH? Antes de hablar del plato principal debemos definir el contexto, ZSH es un terminal alternativo para sistemas operativos Unix que recopila funcionalidades de distintos terminales como Bash, ksh y tcsh. Es quiz\u00e1s la l\u00ednea de comandos m\u00e1s flexible y poderosa que hay, ofreciendo numerosas ventajas sobre todo en cuanto escritura de&nbsp;scripts&nbsp;e interpretaci\u00f3n [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[221,376,4,220,219],"tags":[],"class_list":["post-1828","post","type-post","status-publish","format-standard","hentry","category-comandos","category-consola","category-linux","category-terminal","category-zsh"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1828","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=1828"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1828\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1828"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1828"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1828"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}