[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y ] [Home]
4chanarchives logo
tell me about your zsh config /g/
Images are sometimes not shown due to bandwidth/network limitations. Refreshing the page usually helps.

You are currently reading a thread in /g/ - Technology

Thread replies: 41
Thread images: 8
tell me about your zsh config /g/
>>
>>53844839
>11.04
>>
god that's horrible

hipster mac- and ubuntufags ruined the shell for me
>>
>>53845479
show me your shell then
>>
>>53845479
Are you really surprised that a ricer shell is used by ricers?
>>
>>53845642
I'm surprised to see this shit outside its containment thread
>>
File: pygmalion.png (73 KB, 1068x298) Image search: [Google]
pygmalion.png
73 KB, 1068x298
>>53844839
i use the pygmalion theme but remove the last loop in the script to wrap around when there isnt enought horizontal room.
i dont like the wrapping.
>>
>>53846366
That looks disgusting
>>
do you think we'll be able to run zsh on GNU/Windows as a default shell?
technically they said you could use anything from user-space, so...
honestly if i can get oh-my-zsh or prezto running natively on windows without too much fucking around, with all the CLI tools, i'd have very few reasons to use linux.
>>
>>53846599
Yes I'm in the test group. Basically anything that works on Ubuntu that isn't super Linux specific (like kvm for example) works fine
>>
>>53846650
thanks, a few questions if you don't mind..
so, can you make like a shortcut on your desktop that throws you right into zsh? conifgs and theme and all? or do you have to start in bash and type zsh?
and can you use apt-get without issues?
what does it look like when you try to install things that aren't allowed?
is the dir structure like in ubuntu? how do you get to your windows files, if that's even possible?
>>
>>53846650
thinking about joining the test group but their terms make it look like they spy the crap out of you. can i be an insider without sending any feedback?
also, is the transition from/to the insider program smooth or do i have to fresh install the OS?
>>
>>53846701
Yes, making shortcuts is possible
Yes, apt-get Just Werks
If you install something that doesn't work it crashes the same as it would on Linux if system calls not present on the system were made
Windows drives are mounted at /mnt/c for c drive, etc
>>
>>53846743
Idk been an insider since the program started.
>>
>>53846783
thanks man, sounds pretty fucking sweet. looks like microsoft nailed it tbqh
>>
>>53844839
I used the same as arch iso, any place that share and explain the config that is used?
>inb4 http://dotshare.it/

I'm ok with the arch one exept that 'sudo command +up' should skip the 'sudo' and keep looking for history on that command with sudo
>>
what else do you need faggots?
>>
>using a shell that is not POSIX compliant
>using a theme that looks like a unicorn shat over the terminal
>>
>>53846896
>>
>>53846902
actual question, what do you mean by posix compliant?
>>
File: screenshot_2016-04-03-20:32:36.png (19 KB, 513x186) Image search: [Google]
screenshot_2016-04-03-20:32:36.png
19 KB, 513x186
The braces help me move around from command to command as I'm running everything in neovim.
>>
Why do you people need some much shit in your prompt? what happend to good ol "$ "?
>>
>>53846986
>$
I hope you mean "%"
>>
I pretty much just installed grml-zsh-config package and added couple aliases of my own. Arch uses that in it's live iso. It did come with some advanced shit that I don't need but it's still pretty lightweight.

https://wiki.archlinux.org/index.php/Zsh#Sample_.zshrc_files
>>
# ~/.zshrc
#


PROMPT="%B%~%b%% "
eval $(dircolors ~/.config/dircolors)


#
# completion
#

autoload -U compinit && compinit -d ~/.cache/zcompdump

zstyle ':completion:*' menu select

zstyle ':completion:*' matcher-list 'm:{a-z}={A-Z}'

zstyle ':completion:*:descriptions' format "completing %B%d%b%"
zstyle ':completion:*:matches' group 'yes'
zstyle ':completion:*' group-name ''

zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' list-dirs-first true


#
# aliases
#

alias bc='bc -l'
alias copy='rsync -ahv --info=progress2'
alias cp='cp -iv'
alias du='du -h'
alias e="$EDITOR"
alias locate='locate -i'
alias ls='ls -hN --group-directories-first --color=auto'
alias mkdir='mkdir -p'
alias mv='mv -iv'
alias qmv='qmv -e "gedit -s" -f do'
alias topdf='libreoffice --headless --convert-to pdf'


#
# keybinds
#

WORDCHARS=

bindkey '\e[3~' delete-char
bindkey '\e[1;3D' backward-word
bindkey '\e[1;3C' forward-word
bindkey '\e[1;5D' backward-word
bindkey '\e[1;5C' forward-word


#
# window title
#

case $TERM in
rxvt*|screen*|termite|xterm*)
precmd () { print -Pn '\e]0;%~ - Terminal\a' }
preexec () { print -n "\e]0;$1 - Terminal\a" }
esac
>>
>>53846986
>Why do you people need some much shit in your prompt?
To convey information about your current environment for efficiency's sake.

>what happend to good ol "$ "?
It continues to have its place in stock configurations of shells not meant to be often used and in the shells of people who don't know what they're doing.
>>
>>53846931
The shell language described by POSIX.
You want to write your scripts in that if you want them to be portable.
zsh has another language, so a zsh script only runs with zsh.
>>
>>53847060
so has bash, ksh, ...
pretty much any shell except for shit like dash that no one in their right mind would as their interactive shell
>>
>>53847060
that's why you don't write scripts in zsh,
but you do use it as an interactive terminal
>>
>>53847060
it's a bash with an interactive terminal you dip
>>
File: scrot.png (42 KB, 482x331) Image search: [Google]
scrot.png
42 KB, 482x331
OP,

That looks fucking awful.
>>
what about it?
>>
>>53846902
zsh is POSIX compliant. Having additional features and functionality does not make something non-posix compliant unless the standard explicitly forbids that functionality.
>>
>>53846599
probably not even bash ...
>>
>>53844839
After bash available on win out of the box I feel like edgy shells will be new /g/ trend
>>
>>53844839
>tell me about your zsh config /g/
It doesn't use shitty generic style, has good completion system, syntax colouring and is useful.
>>
File: Selection_054.png (42 KB, 362x134) Image search: [Google]
Selection_054.png
42 KB, 362x134
fucking ricefags
>>
>>53847147
use a damn powerline font to make your prompt look like an arrow instead a triangle and a box, your welcome
>>
File: Richard-Stallman.jpg (348 KB, 2283x1531) Image search: [Google]
Richard-Stallman.jpg
348 KB, 2283x1531
>>53847026

>It continues to have its place in stock configurations of shells not meant to be often used and in the shells of people who don't know what they're doing.

I like rice, but that was a really stupid quote.
>>
>>53848220
>not scrot -s
>>
>>53846959
>neovim
muh nugger
Thread replies: 41
Thread images: 8

banner
banner
[Boards: 3 / a / aco / adv / an / asp / b / biz / c / cgl / ck / cm / co / d / diy / e / fa / fit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mu / n / news / o / out / p / po / pol / qa / r / r9k / s / s4s / sci / soc / sp / t / tg / toy / trash / trv / tv / u / v / vg / vp / vr / w / wg / wsg / wsr / x / y] [Home]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
If a post contains personal/copyrighted/illegal content you can contact me at [email protected] with that post and thread number and it will be removed as soon as possible.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com, send takedown notices to them.
This is a 4chan archive - all of the content originated from them. If you need IP information for a Poster - you need to contact them. This website shows only archived content.