Browse Source

Lf and some features

main
Yiğit Çolakoğlu 4 years ago
parent
commit
86ec89b66a
4 changed files with 11 additions and 16 deletions
  1. +7
    -0
      config/lf/lfrc
  2. +2
    -1
      config/zsh/.zshrc
  3. +0
    -13
      config/zsh/fzf.zsh
  4. +2
    -2
      install.sh

+ 7
- 0
config/lf/lfrc View File

@ -32,6 +32,11 @@ cmd open ${{
cmd mkdir $mkdir -p "$(echo $* | tr ' ' '\ ')"
cmd select_dir ${{
echo $f > /tmp/lf-chrome-choosed
lf -remote "send $id quit"
}}
cmd extract ${{
clear; tput cup $(($(tput lines)/3)); tput bold
set -f
@ -125,6 +130,8 @@ map <c-y> up
map V push :!vim<space>
map cd push !cd<space>
map sd select_dir
# Movement
map ~ cd ~
map g/ cd /


+ 2
- 1
config/zsh/.zshrc View File

@ -39,7 +39,8 @@ if [ -f "$XDG_CONFIG_HOME"/zsh/secret ]; then
fi
source "$XDG_CONFIG_HOME"/zsh/cmds
[ -f "$XDG_CONFIG_HOME"/zsh/fzf.zsh ] && source "$XDG_CONFIG_HOME"/zsh/fzf.zsh
source "/usr/share/fzf/completion.zsh" 2> /dev/null
source "/usr/share/fzf/key-bindings.zsh"
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=241,bold'
export KEYTIMEOUT=5


+ 0
- 13
config/zsh/fzf.zsh View File

@ -1,13 +0,0 @@
# Setup fzf
# ---------
if [[ ! "$PATH" == */home/yigit/.local/share/fzf/bin* ]]; then
export PATH="${PATH:+${PATH}:}/home/yigit/.local/share/fzf/bin"
fi
# Auto-completion
# ---------------
[[ $- == *i* ]] && source "/home/yigit/.local/share/fzf/shell/completion.zsh" 2> /dev/null
# Key bindings
# ------------
source "/home/yigit/.local/share/fzf/shell/key-bindings.zsh"

+ 2
- 2
install.sh View File

@ -122,12 +122,12 @@ mkdir -p "$GOPATH"
mkdir -p "$ANDROID_HOME"
mkdir -p "$FLUTTER_HOME"
mkdir -p "$LEIN_HOME"
mkdir -p "$NPM_CONFIG_USERCONFIG"
mkdir -p "$NVM_DIR"
mkdir -p "$GNUPGHOME"
mkdir -p "$WEECHAT_HOME"
mkdir -p "$JUPYTER_CONFIG_DIR"
mkdir -p "$PYLINTHOME"
mkdir -p "$HOME/.local/share/zsh"
touch "$_Z_DATA"
# Root Files and Directories
@ -193,7 +193,7 @@ sudo make install > /dev/null 2> /dev/null
cd $prev
# Do a cleanup and delete some problematic files
mv ~/.fzf > ~/.local/share/fzf
mv ~/.fzf ~/.local/share/fzf
rm -rf ~/.fzf*
rm -rf ~/.bash_profile
sudo rm -rf /etc/urlview/system.urlview


Loading…
Cancel
Save