- Make sure you installed the w3m CLI
- Create a script like
websearch
with the following content:
#!/bin/sh
query=""
for arg in "$@"; do
query="$query+$arg"
done
websearch
with the following content:#!/bin/sh
query=""
for arg in "$@"; do
query="$query+$arg"
done
websearch
com o seguinte conteúdo:#!/bin/sh
consulta=""
para argumento em "$@"; fazer
consulta="$consulta+$arg"
feito
#!/usr/bin/env bash | |
pbcopy | |
pane_count=$(tmux list-panes | wc -l) | |
edit() { | |
local current_pane="$(tmux list-panes -F "#{pane_active} #{pane_pid} #{pane_current_command}" | grep "^1" | awk '{print $3}')" | |
if [ "$current_pane" = "nvim" ] || [ "$current_pane" = "nvi" ] || [ "$current_pane" = "Vim" ] || [ "$current_pane" = "vim" ]; then |
let mapleader = ' ' | |
" Enable filetype detection and plugin functionality | |
filetype plugin on | |
" Enable syntax highlighting | |
syntax on | |
" Set the tab size to 2 spaces | |
set tabstop=2 |
#!/usr/bin/env perl | |
use v5.14; | |
use warnings; | |
use strict; | |
my $dir = `git rev-parse --show-toplevel`; | |
$dir =~ s/^\s+|\s+$//g; |
set -g terminal-overrides ',xterm-256color:Tc' | |
set -g default-terminal "tmux-256color" | |
set -as terminal-overrides ',xterm*:sitm=\E[3m' | |
# start window indexing at one instead of zero | |
set -g base-index 1 | |
set -g pane-base-index 1 | |
set -g renumber-windows on | |
setw -g mode-keys vi | |
# fix accidently typing accent characters, etc. |
#!/usr/bin/env bash | |
gh api graphql \ | |
-f query=" | |
query { | |
repository(owner: \"ORG\", name: \"REPO_NAME\") { | |
discussions(first: 29) { | |
edges { | |
node { | |
title |
alias sync="stow . -t ~/" | |
alias chmox="chmod +x" | |
alias l=exa | |
alias ls=exa | |
alias ll="exa -ll" | |
alias la="exa -la" | |
alias lg=lazygit | |
# alias vi="$EDITOR" | |
alias vi="vim" |
# frozen_string_literal: true | |
# typed: true | |
require 'sorbet-runtime' | |
# Result... | |
module Result | |
extend T::Sig | |
# Ok... |
local M = {} | |
---@return 'main' | 'develop' | |
local function decide_base_branch() | |
if vim.fn.system 'git branch --contains develop' == 'error: malformed object name develop' then | |
return 'main' | |
end | |
return 'develop' | |
end |