...
 
Commits (4)
......@@ -19,7 +19,7 @@ create_session() {
open_or_log newsboat
tmux new-window -n 'reddit'
open_or_log rtv
open_or_log tuir
tmux new-window -n 'weechat'
# Stop Weechat from renaming the window
......
......@@ -70,7 +70,6 @@ brew "msmtp"
brew "offlineimap"
brew "neomutt/homebrew-neomutt/neomutt", args: ["with-gpgme", "with-notmuch-patch", "with-lua"]
# End Mail
brew "rtv"
brew "tmux", args: ["HEAD"]
brew "vim"
brew "weechat" # , args: ["with-curl"]
......
; Reddit Terminal Viewer Configuration File
; https://github.com/michael-lazar/rtv
; https://github.com/michael-lazar/tuir
;
; This file should be placed in $XDG_CONFIG/rtv/rtv.cfg
; If $XDG_CONFIG is not set, use ~/.config/rtv/rtv.cfg
; This file should be placed in $XDG_CONFIG/tuir/rtv.cfg
; If $XDG_CONFIG is not set, use ~/.config/tuir/rtv.cfg
[rtv]
[tuir]
##################
# General Settings
##################
......@@ -20,7 +20,7 @@ monochrome = False
flash = True
; Enable debugging by logging all HTTP requests and errors to the given file.
;log = /tmp/rtv.log
;log = /tmp/tuir.log
; Default subreddit that will be opened when the program launches.
subreddit = front
......@@ -28,7 +28,7 @@ subreddit = front
;subreddit = python+linux+programming
;subreddit = all
; Allow rtv to store reddit authentication credentials between sessions.
; Allow tuir to store reddit authentication credentials between sessions.
persistent = True
; Clear any stored credentials when the program starts.
......@@ -46,7 +46,7 @@ max_comment_cols = 120
; Hide username if logged in, display "Logged in" instead
hide_username = False
; Color theme, use "rtv --list-themes" to view a list of valid options.
; Color theme, use "tuir --list-themes" to view a list of valid options.
; This can be an absolute filepath, or the name of a theme file that has
; been installed into either the custom of default theme paths.
theme = molokai-modified
......@@ -55,16 +55,16 @@ theme = molokai-modified
# OAuth Settings
################
; This sections defines the paramaters that will be used during the OAuth
; authentication process. rtv is registered as an "installed app",
; authentication process. tuir is registered as an "installed app",
; see https://github.com/reddit/reddit/wiki/OAuth2 for more information.
; These settings are defined at https://www.reddit.com/prefs/apps and should
; not be altered unless you are defining your own developer application.
oauth_client_id = E2oEtRQfdfAfNQ
oauth_client_id = zjyhNI7tK8ivzQ
oauth_client_secret = praw_gapfill
oauth_redirect_uri = http://127.0.0.1:65000/
; Port that the rtv webserver will listen on. This should match the redirect
; Port that the tuir webserver will listen on. This should match the redirect
; uri defined above.
oauth_redirect_port = 65000
......@@ -74,7 +74,7 @@ oauth_scope = edit,history,identity,mysubreddits,privatemessages,read,report,sav
; This is a separate token for the imgur api. It's used to extract images
; from imgur links and albums so they can be opened with mailcap.
; See https://imgur.com/account/settings/apps to generate your own key.
imgur_client_id = 93396265f59dec9
imgur_client_id = b33d69ac8931734
[bindings]
##############
......
# vim:ft=conf
email=${NPM_EMAIL}
init-license=MIT
init-author-email=${NPM_EMAIL}
......@@ -8,5 +9,5 @@ init-version=0.0.1
registry=https://registry.npmjs.org/
@lightspeed:registry=https://registry.npmjs.org/
//npm.pkg.github.com/:_authToken=${GITHUB_PKGS_TOKEN}
@ahmedelgabri:registry=https://npm.pkg.github.com/
# @ahmedelgabri:registry=https://npm.pkg.github.com/
@lightspeedretail:registry=https://npm.pkg.github.com/
......@@ -35,14 +35,15 @@ function {
(( ${+_comps} )) && _comps[zplugin]=_zplugin
# Shell {{{
zplugin snippet OMZ::plugins/gpg-agent/gpg-agent.plugin.zsh
zplugin ice svn
zplugin snippet OMZ::plugins/gpg-agent
zplugin light zdharma/zui
zplugin load https://github.com/zdharma/zui
zplugin ice lucid wait'[[ -n ${ZLAST_COMMANDS[(r)cras*]} ]]'
zplugin light https://github.com/zdharma/zplugin-crasis
zplugin load https://github.com/zdharma/zplugin-crasis
zplugin ice pick"async.zsh" src"pure.zsh"
zplugin light https://github.com/ahmedelgabri/pure
zplugin load https://github.com/ahmedelgabri/pure
local SYMBOLS=("λ" "ϟ" "▲" "∴" "→" "»" "৸" "◗")
# Arrays in zsh starts from 1
......@@ -60,7 +61,7 @@ function {
# Utilities & enhancements {{{
zplugin ice wait lucid
zplugin light https://github.com/zsh-users/zsh-history-substring-search
zplugin load https://github.com/zsh-users/zsh-history-substring-search
# bind UP and DOWN keys
bindkey "${terminfo[kcuu1]}" history-substring-search-up
bindkey "${terminfo[kcud1]}" history-substring-search-down
......@@ -69,28 +70,29 @@ function {
bindkey '^[[A' history-substring-search-up
bindkey '^[[B' history-substring-search-down
zplugin ice wait blockf lucid
zplugin light https://github.com/zsh-users/zsh-completions
zplugin ice wait lucid atload"_zsh_autosuggest_start"
zplugin light https://github.com/zsh-users/zsh-autosuggestions
export ZSH_AUTOSUGGEST_USE_ASYNC=true
zplugin ice wait lucid atinit"zpcompinit; zpcdreplay"
zplugin light https://github.com/zdharma/fast-syntax-highlighting
zplugin ice wait lucid atclone"dircolors -b LS_COLORS > c.zsh" atpull'%atclone' pick"c.zsh"
zplugin light https://github.com/trapd00r/LS_COLORS
zplugin ice atclone"dircolors -b LS_COLORS > clrs.zsh" atpull'%atclone' pick"clrs.zsh" nocompile'!' atload'zstyle ":completion:*" list-colors “${(s.:.)LS_COLORS}”'
zplugin load trapd00r/LS_COLORS
# }}}
# Misc {{{
zplugin ice from"gh-r" as"program" bpick"*clojure-lsp*" atclone"chmod 755 clojure-lsp" atpull"%atclone" mv="clojure-lsp -> clojure-lsp"
zplugin light https://github.com/snoe/clojure-lsp
zplugin load https://github.com/snoe/clojure-lsp
# }}}
# Local plugins/completions/etc... {{{
zplugin light %HOME/.zsh.d/aliases
zplugin load %HOME/.zsh.d/aliases
# }}}
# Recommended be loaded last {{{
zplugin ice wait blockf lucid atpull'zplugin creinstall -q .'
zplugin load https://github.com/zsh-users/zsh-completions
zplugin ice wait lucid atinit"zpcompinit; zpcdreplay"
zplugin load https://github.com/zdharma/fast-syntax-highlighting
zplugin ice wait lucid atload"_zsh_autosuggest_start"
zplugin load https://github.com/zsh-users/zsh-autosuggestions
export ZSH_AUTOSUGGEST_USE_ASYNC=true
# }}}
##############################################################
......@@ -172,6 +174,7 @@ function {
export NODE_VERSIONS="${N_PREFIX}/n/versions/node"
export NODE_VERSION_PREFIX=""
(( $+commands[direnv] )) && eval "$(direnv hook zsh)"
(( $+commands[hub] )) && eval "$(hub alias -s)"
############### Kitty
if [[ ! -z "${KITTY_WINDOW_ID}" ]]; then
......
......@@ -58,13 +58,6 @@ alias r="ranger" # overrides built-in r command
(( $+commands[bat] )) && alias cat='bat '
(( $+commands[python3] )) && alias server="python3 -m http.server 80"
if (( $+commands[hub] )); then
alias git=hub
compdef g=hub
else
compdef g=git
fi
(( $+commands[yarn] )) && alias y=yarn
[[ -x "/Applications/Alacritty.app/Contents/MacOS/alacritty" ]] && alias alacritty='/Applications/Alacritty.app/Contents/MacOS/alacritty'
......@@ -17,13 +17,14 @@ PACKAGES=(
"black"
"pynvim"
"pylint"
"tuir"
)
FLAGS=''
for package in "${PACKAGES[@]}"; do
[[ $package == "pip" ]] && FLAGS="--upgrade" || FLAGS="--user"
[[ $package == "black" ]] && pip3 install "$FLAGS" "$package" || pip2 install "$FLAGS" "$package" && pip3 install "$FLAGS" "$package"
[[ $package == "black" || $package == 'tuir' ]] && pip3 install "$FLAGS" "$package" || pip2 install "$FLAGS" "$package" && pip3 install "$FLAGS" "$package"
done
unset -v PACKAGES FLAGS