fish shell script parent directory multiple dots
#!fish
# This goes in $HOME/.config/fish/config.fish
function expand-dot-to-parent-directory-path -d 'expand ... to ../. and .... to ../.. and so on'
# Get commandline up to cursor
set -l cmd (commandline --cut-at-cursor)
# Match last line
switch $cmd[-1]
case '*..'
commandline --insert '/.'
case '*'
commandline --insert '.'
end
end
function my_key_bindings
fish_default_key_bindings
bind . 'expand-dot-to-parent-directory-path'
end
set -g fish_key_bindings my_key_bindings
Also in Shell:
- how to see all branches in git
- linux chown
- pyglet linux
- xbox 360 wireless adapter linux
- check running process in linux
- is there a steam repository for kali linux
- git sync branch with master
- free port in linux
- how to add application to unity launcher
- powershell get computer make and model
- linux while loop
- ffmpeg
- matplotlib install
- mongodb shell query last document
- restart bluetooth ubuntu
- angular add service worker
- how to get application guid powershell
- git clone with username and password
- linux check cpu core
- set git remote heroku to https://git.heroku.com/resume-projects.git
- material ui install
- compress folder ubuntu
- fullstack course 4 github
- linux view services