- Notifications
You must be signed in to change notification settings - Fork2
Just a couple of useful bash aliases and tools
License
NotificationsYou must be signed in to change notification settings
fastiuk/dotfiles
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
This is instruction how to install and useBashAliases
Install all needed tools:
$ sudo apt install git grc
InstallBashAliases:
$ git clone https://github.com/yevfast/bash-aliases.git$ ln -sf$PWD/bash-aliases/.bash_aliases~/$.~/.bashrc
You need to remove file.bash_aliases from home directory:
$ rm~/.bash_aliases
Run the next command in the terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/fastiuk/bash-aliases/main/setup.sh)"
Configuration files for fish shell
Before you would use this config you will need fish shell.You can install it by your favourite package manager or build it by yourself.I recommendfish v3.3.1.To build it from source code use the next steps:
# Download fish shell source codewget https://github.com/fish-shell/fish-shell/releases/download/3.3.1/fish-3.3.1.tar.xztar xvf fish-3.3.1.tar.xzcd fish-3.3.1# Buildmkdir build; cd buildcmake ..makesudo make installfish
Now you are able to install
# Clone config to desired locationgit clone https://github.com/fastiuk/fish-config# Remove your current fish config or backup itrm -r ~/.config/fish/# Install new fish configln -s (pwd)/fish-config/fish ~/.config/fish
You can also include your bash aliases to fish environment.Just link it to .profile file.
cdln -s .bash_aliases .profileexitfish
- This config usesbass plugin to read bash-like rc files. Prepare desired bashrc or other *rc files and source it in ~/.profile file. fish-config will read ~/.profile and you will be able to use your favorite aliases/functions.
- Nathaniel forthis answer. It allows you to use "sudo !!" - my favourite shortcut.