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

/*sh/

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 14
Thread images: 1

File: 2016-01-13-130647_876x508_scrot.png (56KB, 876x508px) Image search: [Google]
2016-01-13-130647_876x508_scrot.png
56KB, 876x508px
What shell do you use?

I've been using fish for years for its autocompletion, but the not being POSIX compliance is starting to bother more than I'd like. Bash is ok, zsh seems customizable but convoluted. Things like ohmyzsh seem like a bad idea because you'd be using a config you don't understand which only complicates things. What choose?
>>
>using linux
>>
zsh is comfy
>>
I use zsh interactively. I use the syntax coloring thing and I understand it at least as well as the fish implementation.
I script in pure POSIX bourne shell or bash iff I'm feeling really lazy, bash makes something noticeably easier and I'm not going to use the script on another system.
>>
>>52397968
>I've been using fish for years
oh you're one of *those* people
>>
>>52397985
I assume you're completely ignorant to the existance and power of shells?

You might want to check it out. We're on a technology board after all.

>>52398006
>>52398042
Zsh seems nice, do you use any premade config?
>>
>>52398057
Y-yes.

To my defense: the real time history completion is unmatched as far as I know.
>>
>>52398063
>Zsh seems nice, do you use any premade config?

I looked at other people's configs. This is the result, over the years:

# ~/.zshrc
#

# dircolors
eval $(dircolors ~/.config/dircolors)

# autocorrection
setopt correct

# prompt
PROMPT="%~$ "


#
# 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 -ah --info=progress2'
alias cal='cal -m'
alias cp='cp -iv'
alias du='du -h'
alias e="$EDITOR"
alias locate='locate -i'
alias ls='ls --color=auto --group-directories-first -h'
alias mkdir='mkdir -p'
alias mv='mv -iv'
alias qmv='qmv -f do -e nano'
alias topdf='libreoffice --headless --convert-to pdf'


#
# keybinds
#

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*|xterm*)
precmd () { print -Pn '\e]0;%d\a' }
preexec () { print -n "\e]0;$1\a" }
esac
>>
>>52398370
That's really nice. Thanks.
>>
i use fish, comfiest shell out there
if i need posix or run scripts, i switch to bash
>>
I've dabbled with a few, but fish is currently my favourite interactive shell: I switched from zsh recently.

fish not being POSIX doesn't bother me: run scripts in #!/bin/sh or #!/bin/bash if you must. You should always have hashbangs anyway.

It may be controversial for me to say, but I have to commend Windows PowerShell for a very different, but very effective, approach. I can't get used to it easily enough to use myself, but I can't deny that given the opportunity to start over from a clean break that they had, the PowerShell team did a very interesting job indeed, although I do wish the commands weren't so verbose.
>>
I use rc, I like it because it has very few features and makes you rely on unix tools instead of sh/bash-isms, and it has a sane syntax. That, and it boots up very fast.
>>
>>52397968
Prezto > ohmyzsh any fucking day of the week. Much more optimized.
>>
>>52399087
Came here to say this.

I use the agnoster theme.
Thread posts: 14
Thread images: 1


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

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
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.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.