mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
fish_config to select the proper tab when run with a tab name
`fish_config abbr` should show "abbreviations" selected in the tab list.
This commit is contained in:
parent
2d1331e104
commit
0ddd0ed4fb
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
|||
controllers = angular.module("controllers", []);
|
||||
|
||||
controllers.controller("main", function($scope, $location) {
|
||||
$scope.currentTab = "colors";
|
||||
|
||||
// substr(1) strips a leading slash
|
||||
$scope.currentTab = $location.path().substr(1) || "colors";
|
||||
$scope.changeView = function(view) {
|
||||
$location.path(view);
|
||||
$scope.currentTab = view;
|
||||
|
|
Loading…
Reference in a new issue