diff options
Diffstat (limited to 'config/essentials')
| -rw-r--r-- | config/essentials/shell/aliases.sh | 2 | ||||
| -rw-r--r-- | config/essentials/shell/functions.sh | 7 | ||||
| -rw-r--r-- | config/essentials/zsh/.gitignore | 1 | 
3 files changed, 8 insertions, 2 deletions
diff --git a/config/essentials/shell/aliases.sh b/config/essentials/shell/aliases.sh index c37c702..60c7b6c 100644 --- a/config/essentials/shell/aliases.sh +++ b/config/essentials/shell/aliases.sh @@ -319,7 +319,7 @@ alias dbsmu='rsync -rlpP db:/media/basilisk/music/ /media/kilimanjaro/music'  # git  alias config='GIT_WORK_TREE=~/src/dotfiles/ GIT_DIR=~/src/dotfiles/.git'  alias cfg='edit_git_file ~/src/dotfiles/' -alias nvcfg='edit_git_file ~/.config/nvim' +alias ncfg='edit_git_file ~/.config/nvim'  alias gmod='git status --short | sed '\''/^\s*M/!d;s/^\s*M\s*//'\'' | fzf | xargs vi'  alias gclc='git clone "$(clipo)"' diff --git a/config/essentials/shell/functions.sh b/config/essentials/shell/functions.sh index 7dd14cf..1413fd8 100644 --- a/config/essentials/shell/functions.sh +++ b/config/essentials/shell/functions.sh @@ -340,7 +340,12 @@ ffconcat () {  	ffmpeg -y -f concat -safe 0 -i $tmp -c copy "$1"  	rm $tmp  } -nvim_bindings() {  "$(tmp="$(mktemp)"; nvim +":set nomore | :redir! > $tmp | :map | :redir END | :q" ; fzf < "$tmp"; rm "$tmp")"; } +nvim_bindings() {   +    tmp="$(mktemp)" +    nvim +":set nomore | :redir! > $tmp | :map | :redir END | :q"  > /dev/null +    eval "nvim $(fzf < "$tmp" | awk '{print $NF}' | cut -f1 -d'>' | sed 's/:/ +/')" +    rm "$tmp" +}  prj () {      pfx="$HOME/proj" diff --git a/config/essentials/zsh/.gitignore b/config/essentials/zsh/.gitignore index 524b20e..0a4640d 100644 --- a/config/essentials/zsh/.gitignore +++ b/config/essentials/zsh/.gitignore @@ -1,3 +1,4 @@  histfile  zcompcache*  .zcompdump +.zsh_history  | 
