mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
add: search script
This commit is contained in:
parent
df3001dbab
commit
2928cfe605
3 changed files with 52 additions and 25 deletions
|
|
@ -52,7 +52,6 @@ abbr myip 'curl ipinfo.io'
|
|||
abbr news newsboat
|
||||
abbr :q exit
|
||||
abbr :Q exit
|
||||
alias :w 'echo "Are you drunk??"'
|
||||
|
||||
# ssh
|
||||
abbr pi 'ssh pi4'
|
||||
|
|
@ -69,3 +68,9 @@ abbr sp '$EDITOR ~/.dotfiles/.config/starship.toml'
|
|||
abbr vv 'python3 -m venv venv && source venv/bin/activate.fish'
|
||||
abbr von 'source venv/bin/activate.fish'
|
||||
abbr voff 'deactivate'
|
||||
|
||||
# Search
|
||||
abbr s 'search.py'
|
||||
abbr syt 'search.py -m yt'
|
||||
abbr sgh 'search.py -m gh'
|
||||
abbr sfj 'search.py -m fj'
|
||||
|
|
|
|||
|
|
@ -1,10 +1,3 @@
|
|||
# repo paths
|
||||
set REPOS_PATH ~/repos
|
||||
set UNIV_REPOS_PATH ~/univ-repos
|
||||
set PLAYGROUND_PATH ~/playground
|
||||
set CODEWARS_PATH ~/codewars
|
||||
set ZEROJUDGE_PATH ~/zerojudge
|
||||
|
||||
if status is-interactive
|
||||
|
||||
set -x EDITOR nvim # Default editor
|
||||
|
|
@ -16,17 +9,22 @@ if status is-interactive
|
|||
set -x GOPATH ~/.go # gopath
|
||||
set -x ANSIBLE_CONFIG ~/.ansible.cfg # Ansible path
|
||||
|
||||
# repo paths
|
||||
set REPOS_PATH ~/repos
|
||||
set UNIV_REPOS_PATH ~/univ-repos
|
||||
set PLAYGROUND_PATH ~/playground
|
||||
set CODEWARS_PATH ~/codewars
|
||||
set ZEROJUDGE_PATH ~/zerojudge
|
||||
|
||||
# OCaml opam environment
|
||||
if command -q opam
|
||||
eval (opam env)
|
||||
end
|
||||
|
||||
# fzf layout & theme
|
||||
set -x FZF_DEFAULT_OPTS '
|
||||
set FZF_DEFAULT_OPTS '
|
||||
--cycle
|
||||
--layout=reverse
|
||||
--border=sharp
|
||||
--height=90%
|
||||
--border=none
|
||||
--preview-window=wrap
|
||||
--color=fg:#383A42,bg:#eeeeee,hl:#ca1243
|
||||
--color=fg+:#383A42,bg+:#d0d0d0,hl+:#ca1243
|
||||
|
|
@ -49,19 +47,6 @@ if status is-interactive
|
|||
tmux_home
|
||||
end
|
||||
|
||||
else # non-interactive
|
||||
|
||||
# fzf layout & theme
|
||||
set FZF_DEFAULT_OPTS '
|
||||
--cycle
|
||||
--border=none
|
||||
--preview-window=wrap
|
||||
--color=fg:#383A42,bg:#eeeeee,hl:#ca1243
|
||||
--color=fg+:#383A42,bg+:#d0d0d0,hl+:#ca1243
|
||||
--color=info:#0184bc,prompt:#645199,pointer:#645199
|
||||
--color=marker:#0184bc,spinner:#645199,header:#645199
|
||||
--color=gutter:#eeeeee'
|
||||
|
||||
end
|
||||
|
||||
# iTerm2 intergration
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue