fish shell script parent directory multiple dots
Shell
#!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:
- Title
- apt-get uninstall
- Category
- Shell
- Title
- rustup
- Category
- Shell
- Title
- git revert merge
- Category
- Shell
- Title
- linux screen brightness command line
- Category
- Shell
- Title
- register runner gitlab
- Category
- Shell
- Title
- powershell check if software is installed
- Category
- Shell
- Title
- ansible-galaxy install to specific directory
- Category
- Shell
- Title
- view memory usage linux
- Category
- Shell
- Title
- grep and
- Category
- Shell
- Title
- linux os upgrade
- Category
- Shell
- Title
- install seaborn
- Category
- Shell
- Title
- git gss
- Category
- Shell
- Title
- date command in linux
- Category
- Shell
- Title
- angular add modulee
- Category
- Shell
- Title
- revert git add
- Category
- Shell
- Title
- docker to sudoers
- Category
- Shell
- Title
- powershell script enable tls 1.2
- Category
- Shell
- Title
- how use vim in linux
- Category
- Shell
- Title
- bash grep and sort
- Category
- Shell
- Title
- linux replace string in all files
- Category
- Shell
- Title
- git basic command tutorial
- Category
- Shell
- Title
- linux move everything in a directory to another directory
- Category
- Shell
- Title
- how to get the size of directory in linux
- Category
- Shell
- Title
- git global username --replace-all
- Category
- Shell
- Title
- rsync examples
- Category
- Shell
- Title
- install docker on ubuntu 18.04
- Category
- Shell
- Title
- ubuntu gpg 2
- Category
- Shell
- Title
- intel pinning threads
- Category
- Shell
- Title
- remove .svn recursively linux
- Category
- Shell
- Title
- Failed at the [email protected] postinstall script.
- Category
- Shell
- Title
- docker getting-started
- Category
- Shell
- Title
- choco installation
- Category
- Shell
- Title
- youtube api python
- Category
- Shell
- Title
- read text file command prompt
- Category
- Shell
- Title
- laravel lumen
- Category
- Shell
- Title
- gatsby-plugin-typography
- Category
- Shell
- Title
- bash if statement
- Category
- Shell
- Title
- git remove remote
- Category
- Shell
- Title
- git add gitignore
- Category
- Shell
- Title
- special bash variables
- Category
- Shell
- Title
- install curl ubuntu
- Category
- Shell
- Title
- connect to git repo with ssh-rsa
- Category
- Shell
- Title
- optional argument bash
- Category
- Shell
- Title
- babel json loader
- Category
- Shell
- Title
- install node ubuntu
- Category
- Shell
- Title
- long term projects for java learners
- Category
- Shell
- Title
- how to install wordpress ubuntu 16.04 rosehosting
- Category
- Shell
- Title
- mate on ubuntu 20.04
- Category
- Shell
- Title
- Data path ".builders['app-shell']" should have required property 'class'.
- Category
- Shell
- Title
- git unstage file for commit
- Category
- Shell
- Title
- join linux to ad domain
- Category
- Shell
- Title
- fleet management software github
- Category
- Shell
- Title
- how to use sass in react without eject
- Category
- Shell
- Title
- Error while finding module specification for 'virtualenvwrapper.hook_loader' - ubuntu 20
- Category
- Shell
- Title
- mac cleanup github
- Category
- Shell
- Title
- FATAL ERROR: Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
- Category
- Shell
- Title
- pylinter not installed vscode pipenv
- Category
- Shell
- Title
- zip current directory mac command line
- Category
- Shell
- Title
- ionic publish
- Category
- Shell
- Title
- xcode clean derived data command line
- Category
- Shell
- Title
- how to upload files to s3 bucket from mac shell
- Category
- Shell
- Title
- git ignore still tracking
- Category
- Shell
- Title
- why cant i add some applications to favourite in ubuntu
- Category
- Shell
- Title
- shared folder virtualbox ubuntu
- Category
- Shell
- Title
- unknown type name 'CDVUIWebViewDelegate' CDVUIWebViewDelegate* _webViewDelegate;
- Category
- Shell
- Title
- How to find your ip on debian linux wsl
- Category
- Shell
- Title
- linux df -h levels occupy
- Category
- Shell
- Title
- get git remote url
- Category
- Shell
- Title
- install snap change in progress ubuntu
- Category
- Shell
- Title
- ubuntu intall OpenBLAS
- Category
- Shell
- Title
- linux find file
- Category
- Shell
- Title
- touch for powershell
- Category
- Shell
- Title
- linux rename
- Category
- Shell
- Title
- Macbook git user config global
- Category
- Shell
- Title
- driver hosts file
- Category
- Shell
- Title
- serverless invoke sqs
- Category
- Shell
- Title
- kill process on port windows
- Category
- Shell
- Title
- how to know partition of current directory
- Category
- Shell
- Title
- create symbolic link linux
- Category
- Shell
- Title
- where is path on klai linux
- Category
- Shell
- Title
- git set upstream
- Category
- Shell
- Title
- install opencl library
- Category
- Shell
- Title
- update pip
- Category
- Shell
- Title
- bash ls exclude substring
- Category
- Shell
- Title
- bash comment
- Category
- Shell
- Title
- electron
- Category
- Shell
- Title
- install wireguard
- Category
- Shell
- Title
- search by message git
- Category
- Shell
- Title
- dotfiles
- Category
- Shell
- Title
- ubuntu view disk space ec2
- Category
- Shell
- Title
- bash permissions
- Category
- Shell
- Title
- php my admin
- Category
- Shell
- Title
- git undo merge
- Category
- Shell
- Title
- GVfs metadata is not supported. Fallback to TeplMetadataManager.
- Category
- Shell
- Title
- install pybind ubuntu
- Category
- Shell
- Title
- linux add alias
- Category
- Shell
- Title
- beautifulsoup4 install
- Category
- Shell
- Title
- install ifconfig on ubuntu
- Category
- Shell
- Title
- set remote url git
- Category
- Shell
- Title
- git command to get the repo url
- Category
- Shell