Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

add fish alias

vim ~/.config/fish/config.fish

# Add alias in config.fish

alias c="clear"
Comment

add alias fish shell

# Define alias in shell
alias rmi "rm -i"

# Define alias in config file
alias rmi="rm -i"

# This is equivalent to entering the following function:
function rmi
    rm -i $argv
end

# Then, to save it across terminal sessions:
funcsave rmi
Comment

create fish alias

alias rmi="rm -i"

# This is equivalent to entering the following function:
function rmi --wraps rm --description 'alias rmi=rm -i'
    rm -i $argv
end

# This needs to have the spaces escaped or "Chrome.app..."
# will be seen as an argument to "/Applications/Google":
alias chrome='/Applications/Google Chrome.app/Contents/MacOS/Google Chrome banana'
Comment

PREVIOUS NEXT
Code Example
Shell :: linux kill all process of a user 
Shell :: Flutter plugin not installed; this adds Flutter specific functionality 
Shell :: /bin/bash^M: bad interpreter: No such file or directory 
Shell :: Files by size 
Shell :: Remove a file from a Git repository without deleting it from the local 
Shell :: how to clone a specific commit from github 
Shell :: ssh into directory 
Shell :: create swapfile ubuntu 
Shell :: linux check if a group exist or not 
Shell :: how to install spotify in ubuntu 
Shell :: how to kill a process in linux 
Shell :: ubuntu 18.04 get public ip address 
Shell :: check ubuntu uptime 
Shell :: delete branch gitlab 
Shell :: deletes lines including regex match 
Shell :: how disabled cors in chrome 
Shell :: linux ip route add 
Shell :: linux change uid 
Shell :: cut first 10 characters linux 
Shell :: How do I check out a remote Git branch? 
Shell :: npm install on Termux 
Shell :: how to add ssh key to github 
Shell :: install solidity compiler command with version 
Shell :: sublime downloafd 
Shell :: how to move folders in linux terminal 
Shell :: bash script to get all git branches from remote 
Shell :: wps office has not found any installed printers 
Shell :: how to show two table side by side in github readme 
Shell :: xcode errSecInternalComponent 
Shell :: active command line macbook developer 
ADD CONTENT
Topic
Content
Source link
Name
8+7 =