Skip to content

Instantly share code, notes, and snippets.

Avatar

Shabanali Faghani shabanali-faghani

  • Tehran, Iran
View GitHub Profile
View my-fzf-settings.bash
#install script for servers not connected to the Internet from current local install
#-------------------------------------------------------
#!/bin/bash
set -x
scp -r ~/softwares/.fzf ${2:-root}@$1:/usr/local/bin/
ssh ${2:-root}@$1 'echo "[ -f /usr/local/bin/.fzf/.fzf.bash ] && source /usr/local/bin/.fzf/.fzf.bash" >> /etc/bashrc'
ssh ${2:-root}@$1 'chmod +x /usr/local/bin/.fzf/bin/fzf'
#-------------------------------------------------------
HISTSIZE=2000