Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What is your dev environment? #28

Closed
AbeEstrada opened this issue Jul 1, 2015 · 10 comments
Closed

What is your dev environment? #28

AbeEstrada opened this issue Jul 1, 2015 · 10 comments

Comments

@AbeEstrada
Copy link

What's your hardware and software that you use for coding?

@sindresorhus
Copy link
Owner

sindresorhus commented Jul 1, 2015

I use a MacBook Pro (15-inch, Late 2013) and Bose QC25 headphones.

My most used apps are iTerm2, Chrome, Sublime Text, Dash, Alfred, Caprine, Black Out, and Gifski. I also use the menu bar apps Bartender, Battery Indicator, Lungo, and Spectacle.

In Sublime Text, I use the Spacegray theme, the Oceanic Next color scheme, with the above font. I use n for Node.js version management.

Also see "What terminal do you use?".

@sindresorhus sindresorhus changed the title What is your dev enviroment? What is your dev environment? Jul 1, 2015
@jaan
Copy link

jaan commented Jul 2, 2015

👍

@iamstarkov
Copy link

Would you mind showing your zsh_stats log? 🐱

@sindresorhus
Copy link
Owner

149  14.9149%   c
97   9.70971%   nv
70   7.00701%   nh
42   4.2042%    xo
39   3.9039%    npm
39   3.9039%    nis
30   3.003%     nid
30   3.003%     ags
29   2.9029%    nl
27   2.7027%    gc
25   2.5025%    node
24   2.4024%    g
19   1.9019%    s
16   1.6016%    nig
16   1.6016%    ni
15   1.5015%    echo
12   1.2012%    pageres
12   1.2012%    gcl

Not very useful though as most of those are ZSH alias shortcuts.

@A
Copy link

A commented Aug 21, 2015

@sindresorhus can you expand your aliases? I just wrote cute bash one-lining for you :D

zsh_stats | awk '{gsub(/ +|\t+/," ")}1' | cut -d ' ' -f 5 | while read -r i; do alias "$i" || echo "$i"; done

@sindresorhus
Copy link
Owner

c=cd
nv=latest-version
nh='npm docs'
xo
npm
nis='npm install --save'
nid='npm install --save-dev'
ags='ag --ignore-case --literal'
nl='npm link --force'
gc
node
g=git
s
nig='npm install -g'
ni='npm install'
echo
pageres
gcl=clonecd

@sindresorhus
Copy link
Owner

Modified it slightly to show more info:

fc -l 1 | awk '{CMD[$2]++;count++;}END { for (a in CMD)print CMD[a] " " CMD[a]/count*100 "% " a;}' | grep -v "./" | column -c3 -s " " -t | sort -nr | command nl | head -n20 | awk '{gsub(/ +|\t+/," ")}1' | cut -d ' ' -f 5 | while read -r i; do alias "$i" || which "$i" || echo "$i"; done
c=cd
nv=latest-version
nh='npm docs'
/usr/local/bin/xo
nis='npm install --save'
/usr/local/bin/npm
nid='npm install --save-dev'
ags='ag --ignore-case --literal'
nl='npm link --force'
gc () {
    hub checkout "${@:-master}" &> /dev/null || hub checkout "${@:-gh-pages}"
}
/usr/local/bin/node
g=git
s () {
    if [ $# -eq 0 ]
    then
        /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl .
    else
        /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl "$@"
    fi
}
nig='npm install -g'
ni='npm install'
echo: shell built-in command
/usr/local/bin/pageres
gcl=clonecd

And clonecd:

clonecd () {
    hub clone --recursive $1 && cd $(basename ${1%.git})
}

@gaboesquivel
Copy link

do you use dash templates?

@sindresorhus
Copy link
Owner

@sindresorhus
Copy link
Owner

People have asked what laptop I have now. I still have the MacBook Pro (15-inch, Late 2013). Not because I cannot afford to buy a new one, but rather it's a choice. The current one still works great, although battery life is only 3 hours now. And getting a new one comes with a lot of risk: Touch Bar, crappy keyboard, other flaws. I have to admit that the new 16 inch model is very tempting, but at the same time, I never buy the first model of something. It always has flaws. I'll probably get a new one when the second generation of the 16 inch comes out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants