A collection of useful linux bash aliases and notes for different topics in the world of computer science.
By installing, you add my bash aliases to your system. They are quite useful, and probably contain some scripts automating processes you often do manually. You can add them by typing the following in the terminal
cd ~
git clone https://github.com/Haraldlons/linux-tricks.git
echo "source ~/linux-tricks/.bash_aliases" >> ~/.bashrc
After installation you can try one of the features by typing the following in the terminal
new_note
What happens? Only one way to find out!
I have, as many others, experience my fair share of debugging, often ending up in Stack Overflow. This includes both pure Linux related issues, like what to do when random errors appair, and other issues related to different programming languages or tools. I have often found myself in a situation trying to solve the same issue several times, frustrated that I managed to solve this problem earlier, but can't remember how I did it. This repo should contain the most common solutions to problems, both for Linux but also alot of other computer science related problems like Git, Python, C++, Sublime, ROS, Vim and Bash-scripting. In short, everything I touch while using the computer, and have I problem, I will try to write down the solution here in an intuitive setup.
I have over the years added more and more aliases I find useful. Some of them trigger a bash-script making more advanced operations. I highly recommend adding them to your .bashrc.
- Aliases
s
: Sources your bashrcl
: Lists files in current folder neatly..
:cd ..
g
: git status in current folderbb
: Edit my bash aliasesnew_latex
: Generates new latex project from template, and opens in sublime
- Tips You can change which editor which should be used with my alises by changing personal_settings file
Please make pull request or send me a mail at "[email protected]" .
- Make new 'new_cpp' script making new project with header files, objects and some other examples
- Make new 'new_python' script making new project with helper functions file, objects and some other examples
- Make 'lazy' git alias more robust
- use 'gnome-terminal --geometry=20x400+40+2000 -x bash -c "cal -3;bash" ' to make awesome install demo