[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
/*sh/
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: 14
Thread images: 1
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 replies: 14
Thread images: 1

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.