jackyalcine 1 year ago
parent
commit
217e61af16

+ 1
- 1
home/.guard.rb View File

@@ -1,4 +1,4 @@
1 1
 # frozen_string_literal: true
2 2
 
3
-notification :tmux, display_message: true, display_on_all_clients: false, timeout: 1
3
+notification :tmux, display_message: false, display_on_all_clients: false, timeout: 1
4 4
 clearing :off

+ 0
- 8
home/.profile View File

@@ -1,8 +0,0 @@
1
-#!/usr/bin/env sh
2
-# =========================================================================== #
3
-# File: ~/.profile
4
-# Author: Jacky Alcine <me@jalcine.me>
5
-# Description: Entry point for all shells.
6
-# =========================================================================== #
7
-
8
-export PATH="$HOME/.cargo/bin:$PATH"

+ 5
- 3
home/.pryrc View File

@@ -1,6 +1,8 @@
1 1
 begin
2 2
   require 'awesome_print'
3
-  Pry.config.print = proc { |output, value| Pry::Helpers::BaseHelpers.stagger_output("=> #{value.ai}", output) }
4
-rescue LoadError => err
5
-  puts "no awesome_print :("
3
+  Pry.config.print = proc do |output, value|
4
+    Pry::Helpers::BaseHelpers.stagger_output("=> #{value.ai}", output)
5
+  end
6
+rescue LoadError
7
+  puts 'no awesome_print :('
6 8
 end

+ 0
- 0
home/.zplug/local/fzf/fzf.plugin.zsh View File


+ 7
- 4
home/.zplug/local/twitter/twitter.plugin.zsh View File

@@ -1,7 +1,7 @@
1 1
 # From https://gist.github.com/brianloveswords/7534169715b5750a892cddcf54c2aa0e
2 2
 # Thanks.
3 3
 
4
-video-url-from-tweet() {
4
+function video-url-from-tweet() {
5 5
     if [ "$1" ]; then
6 6
         url=$1
7 7
     else
@@ -23,7 +23,8 @@ video-url-from-tweet() {
23 23
         sed 's/.jpg/.mp4/g' |\
24 24
         sed 's/pbs.twimg.com\/tweet_video_thumb/video.twimg.com\/tweet_video/g'
25 25
 }
26
-video-from-tweet() {
26
+
27
+function video-from-tweet() {
27 28
     if [ "$1" ]; then
28 29
         url=$1
29 30
     else
@@ -32,7 +33,8 @@ video-from-tweet() {
32 33
     fi
33 34
     curl $(video-url-from-tweet $url)
34 35
 }
35
-video-to-gif() {
36
+
37
+function video-to-gif() {
36 38
     # derived from https://engineering.giphy.com/how-to-make-gifs-with-ffmpeg/
37 39
     if [ "$2" ]; then
38 40
         input=$1
@@ -47,7 +49,8 @@ video-to-gif() {
47 49
            -f gif \
48 50
            $output
49 51
 }
50
-gif-from-tweet() {
52
+
53
+function gif-from-tweet() {
51 54
     if [ "$2" ]; then
52 55
         url=$1
53 56
         output=$2

+ 0
- 25
home/.zsh/options.zsh View File

@@ -3,30 +3,5 @@ EDITOR=nvim
3 3
 HISTSIZE=50
4 4
 SAVEHIST=1024
5 5
 ZSH_CUSTOM=$HOME/.zsh/custom
6
-POWERLEVEL9K_MODE='nerdfont-complete'
7
-POWERLEVEL9K_PROMPT_ON_NEWLINE=1
8
-POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(
9
-  root_indicator os_icon
10
-  context dir
11
-  vcs ssh newline
12
-)
13
-POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(
14
-  status background_jobs
15
-  pyenv rbenv
16
-  history time
17
-)
18
-POWERLEVEL9K_BATTERY_STAGES=(
19
-   $'▏    ▏' $'▎    ▏' $'▍    ▏' $'▌    ▏' $'▋    ▏' $'▊    ▏' $'▉    ▏' $'█    ▏'
20
-   $'█▏   ▏' $'█▎   ▏' $'█▍   ▏' $'█▌   ▏' $'█▋   ▏' $'█▊   ▏' $'█▉   ▏' $'██   ▏'
21
-   $'██   ▏' $'██▎  ▏' $'██▍  ▏' $'██▌  ▏' $'██▋  ▏' $'██▊  ▏' $'██▉  ▏' $'███  ▏'
22
-   $'███  ▏' $'███▎ ▏' $'███▍ ▏' $'███▌ ▏' $'███▋ ▏' $'███▊ ▏' $'███▉ ▏' $'████ ▏'
23
-   $'████ ▏' $'████▎▏' $'████▍▏' $'████▌▏' $'████▋▏' $'████▊▏' $'████▉▏' $'█████▏' )
24
-
25
-POWERLEVEL9K_BATTERY_LEVEL_BACKGROUND=( 88 94 100 106 70 34 28 22 )
26
-POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
27
-POWERLEVEL9K_SHORTEN_DELIMITER=""
28
-POWERLEVEL9K_SHORTEN_STRATEGY="truncate_from_right"
29
-POWERLEVEL9K_CHANGESET_HASH_LENGTH=6
30
-
31 6
 setopt appendhistory beep notify extendedglob
32 7
 unsetopt autocd

+ 3
- 1
home/.zsh/plugins.zsh View File

@@ -30,6 +30,8 @@ zplug "~/.zplug/local/evm", from:local
30 30
 zplug "~/.zplug/local/exenv", from:local
31 31
 zplug "~/.zplug/local/homeshick", from:local
32 32
 zplug "~/.zplug/local/travis-ci", from:local
33
+zplug "~/.zplug/local/twitter", from:local
34
+zplug "~/.zplug/local/fzf", from:local
33 35
 
34 36
 if [[ $OSTYPE == *darwin* ]]; then
35 37
   zplug "plugins/brew", from:oh-my-zsh
@@ -43,7 +45,7 @@ fi
43 45
 
44 46
 source ~/.zsh/local.zsh
45 47
 
46
-zplug "denysdovhan/spaceship-prompt", use:spaceship.zsh, from:github, as:theme
48
+zplug "geometry-zsh/geometry"
47 49
 
48 50
 if ! zplug check --verbose; then
49 51
   printf "Install? [y/N]: "

Loading…
Cancel
Save