Skip to content

Commit 354c113

Browse files
committed
snapped on Fri Apr 12 19:42:58 IST 2019
1 parent 3eb41ba commit 354c113

7 files changed

Lines changed: 141 additions & 47 deletions

File tree

bin/transfer

Lines changed: 0 additions & 40 deletions
This file was deleted.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
func! myspacevim#before() abort
2+
"other configs
3+
let g:github_dashboard = { 'username': 'nikhgupta', 'password': $GITHUB_TOKEN }
4+
let g:gista#client#default_username = 'nikhgupta'
5+
endf

editor/spacevim/init.toml

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
#=============================================================================
2+
# dark_powered.toml --- dark powered configuration example for SpaceVim
3+
# Copyright (c) 2016-2017 Wang Shidong & Contributors
4+
# Author: Wang Shidong < wsdjeg at 163.com >
5+
# URL: https://spacevim.org
6+
# License: GPLv3
7+
#=============================================================================
8+
9+
# All SpaceVim option below [option] section
10+
[options]
11+
# set spacevim theme. by default colorscheme layer is not loaded,
12+
# if you want to use more colorscheme, please load the colorscheme
13+
# layer
14+
colorscheme = "onedark"
15+
colorscheme_bg = "dark"
16+
# Disable guicolors in basic mode, many terminal do not support 24bit
17+
# true colors
18+
enable_guicolors = true
19+
# Disable statusline separator, if you want to use other value, please
20+
# install nerd fonts
21+
statusline_separator = "arrow"
22+
statusline_inactive_separator = "arrow"
23+
buffer_index_type = 4
24+
enable_tabline_filetype_icon = true
25+
enable_statusline_mode = false
26+
27+
[[layers]]
28+
name = "default"
29+
30+
[[layers]]
31+
name = "edit"
32+
33+
[[layers]]
34+
name = "tools"
35+
36+
[[layers]]
37+
name = "core#statusline"
38+
39+
[[layers]]
40+
name = "colorscheme"
41+
42+
[[layers]]
43+
name = 'shell'
44+
default_position = 'bottom'
45+
default_height = 30
46+
47+
[[layers]]
48+
name = "git"
49+
50+
[[layers]]
51+
name = "github"
52+
53+
[[layers]]
54+
name = "denite"
55+
56+
[[layers]]
57+
name = "lang#ruby"
58+
repl_command = "pry"
59+
60+
[[layers]]
61+
name = "lang#coffeescript"
62+
63+
[[layers]]
64+
name = "lang#dockerfile"
65+
66+
[[layers]]
67+
name = "lang#extra"
68+
69+
[[layers]]
70+
name = "lang#go"
71+
72+
[[layers]]
73+
name = "lang#html"
74+
75+
[[layers]]
76+
name = "lang#javascript"
77+
78+
[[layers]]
79+
name = "lang#markdown"
80+
81+
[[layers]]
82+
name = "lang#php"
83+
84+
[[layers]]
85+
name = "lang#python"
86+
87+
[[layers]]
88+
name = "lang#sh"
89+
90+
[[layers]]
91+
name = "lang#typescript"
92+
93+
[[layers]]
94+
name = "lang#vim"
95+
96+
[[layers]]
97+
name = "lang#vue"
98+
99+
[[layers]]
100+
name = "tmux"
101+
102+
[[layers]]
103+
name = "tags"
104+
105+
[[layers]]
106+
name = "denite"
107+
108+
[[layers]]
109+
name = "checkers"
110+
111+
[[layers]]
112+
name = 'autocomplete'
113+
auto-completion-return-key-behavior = "complete"
114+
auto-completion-tab-key-behavior = "smart"

miscelleneous/gemrc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,3 @@ gem: --no-rdoc --no-ri
1212
:ssl_verify_mode: 0
1313
:sources:
1414
- https://rubygems.org
15-
- http://gems.rubyforge.org
16-
- http://gems.github.com
17-
- http://gemcutter.org

terminal/zsh/aliases.zsh

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,3 +185,16 @@ function serve_rails() {
185185
local port="2$(pwd | md5sum -t | cut -d ' ' -f 1 | tr -d 'a-z' | cut -c1-4)"
186186
bundle exec rails server -b 0.0.0.0 -p $port
187187
}
188+
189+
function ngrok() {
190+
_ngrokport="${1:-80}"
191+
_ngroksubdomain="${2}"
192+
echo "Usage: NGROK_SEED=<seed> ngrok <port> [subdomain]"
193+
if [ -z "${_ngroksubdomain}" ]; then
194+
_ngroksubdomain=$(echo $_ngrokport `date +%Y-%m-%d` $NGROK_SEED | sha256sum | fold -w12 | head -1)
195+
fi
196+
197+
ssh -R $_ngroksubdomain.serveo.net:80:localhost:$_ngrokport serveo.net
198+
}
199+
200+
alias rand_alphanum="cat /dev/random | head -c 200 | sha256sum - | cut -d ' ' -f 1"

terminal/zsh/prompt.zsh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ _prompt_0(){
191191
RPROMPT=""
192192
before_prompt=""
193193
PROMPT='$(proxy_info)' # prompt icon for proxy
194-
PROMPT+="%{$fg[green]%}%c%{$reset_color%} " # cwd name
194+
PROMPT+="%{$fg[magenta]%}%c%{$reset_color%} " # cwd name
195+
PROMPT+='$(git_prompt_info)$(_git_time_since_commit)'"%{$reset_color%}"
195196

196197
# == every prompt should display the following information
197198
# display a telephone icon when we are in a SSH session.
@@ -201,7 +202,7 @@ _prompt_0(){
201202
PROMPT+='$timer_show' # time taken to run last command
202203
PROMPT+='$(_return_code)' # return code for last command
203204

204-
if is_macosx; then PROMPT+="%(!.!.➲) "; else PROMPT+=""; fi
205+
if is_macosx; then PROMPT+="%(!.!.➲) %{$reset_color%}"; else PROMPT+="%{$reset_color%}"; fi
205206
}
206207

207208
_prompt_60(){

terminal/zshrc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,13 @@ export DISABLE_UPDATE_PROMPT=true
7474
export DISABLE_AUTO_TITLE=true # otherwise, causes issues with terminal inside editors
7575

7676
# => load OhMyZSH and some relevant plugins
77-
plugins=(bundler coffee colored-man common-aliases emoji-clock extract
78-
gem golang history-substring-search rails)
77+
plugins=(bundler coffee common-aliases emoji-clock extract bgnotify branch
78+
gem golang history-substring-search rails ssh-agent transfer)
7979
is_macosx && plugins+=( osx )
8080

81+
zstyle :omz:plugins:ssh-agent agent-forwarding on
82+
zstyle :omz:plugins:ssh-agent identities nikhgupta
83+
8184
source $ZSH/oh-my-zsh.sh || echo '[WARN] OhMyZSH was not loaded.'
8285

8386
unalias run-help &>/dev/null; autoload run-help
@@ -95,6 +98,7 @@ done
9598
# path_append $BREW_PREFIX/pear/bin
9699
# path_append $HOME/.cabal/bin
97100
# path_append $HOME/node_modules/.bin
101+
# path_append "/Applications/Visual Studio Code.app/Contents/Resources/app/bin"
98102

99103
source ~/.zsh/aliases.zsh
100104
source ~/.zsh/prompt.zsh

0 commit comments

Comments
 (0)